You can make ContinueOrStop function outside the main function and then call in main when you need like
void ContinueORStop()
{
do{
request for input...
if found invalid, Continue or stop?
...
After one complete run
ask again for Continue or stop?
...
}while(Continue)
}
main()
{
ContinueOrStop();
}
solved Use a same function for several location within a code for C