SHARE
TWEET

jk123

a guest Dec 7th, 2012 22 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if((output = fopen(outputfilename, "r+")) != NULL)
  2.         {
  3.                 printf("Output file already exists. Overwrite? (y/n)");
  4.                 scanf(" %c", &answer);
  5.                 if (answer == 'n')
  6.                 {
  7.                         return 0;
  8.                 }
  9.         }
RAW Paste Data
Want to get better at C?
Learn to code C in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top