Code Snippets C

//Declaration: void _Exit(int exit_code);
#include
#include
int main(void)
{
char mychoice;
do {
printf("Quit (Q)\n");
mychoice = getchar();
} while(!strchr("Q", toupper(mychoice)));
if(mychoice=='Q'){
_Exit(0);
}
return mychoice;
}