Guest User

Untitled

a guest
Sep 26th, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool playAgain(void){
  2.     char cRetry[2];
  3. cRetry[0] = '\0';
  4.  
  5.     while((tolower(cRetry[0]) != 'y') && (tolower(cRetry[0]) != 'n')){
  6.   printf("Would you like to try again? [y/n]");
  7.         fgets(cRetry, 2, stdin);   
  8.             }
  9.    
  10.  return(tolower(cRetry[0]) == 'y');
  11. }
Advertisement
Add Comment
Please, Sign In to add comment