| Example |
#include <rtl.h>
#include <stdio.h>
void tst_ftell (void) {
U32 fpos;
char line[80];
FILE *fin;
fin = fopen ("Counter.log","r");
if (fin != NULL) {
fgets (&line, sizeof (char), fin);
fpos = ftell (fin); // Get position after read operation
fclose (fin);
}
}
|