[Solved] Use a same function for several location within a code for C

[ad_1]

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();
}

[ad_2]

solved Use a same function for several location within a code for C