fscanf_offby1.c 200 B

12345678
  1. //1234 a
  2. #include <stdio.h>
  3. int main() {
  4. FILE *f = fopen("stdio/fscanf_offby1.c", "r");
  5. int x;
  6. fscanf(f, "//%d", &x);
  7. printf("%d, %ld, %d\n", x, ftell(f), fgetc(f));
  8. }