Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: changed filenames from strings to some variable called file_name

...

Code Block
bgColor#ffcccc
FILE* fptr = fopen("myfile.ext"file_name, "rb");
if (fptr == NULL) {
  /* handle error condition */
}

/* Read data */

ungetc('\n', fptr);
ungetc('\r', fptr);

/* Continue on */

...