Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
FILE* fptr = fopen(file_name, "rb");
fpos_t pos;

if (fptr == NULL) {
  /* handleHandle error conditionError */
}

if(fgetpos(fptr, &pos)) {
  /* Handle Error */
}

/* Read data */

if(fsetpos(fptr, &pos)) {
  /* Handle Error */
}

/* Continue on */

...