| fgetpos | Function (Macro)

stdio.h

short fgetpos (FILE *stream, fpos_t *pos);

Gets the current file pointer position.

fgetpos stores the position of the file pointer associated with the stream associated with the structure pointed to by stream in the location pointed to by pos The exact value is irrelevant. On success, fgetpos returns 0. On failure, it returns a nonzero value.
Note: fgetpos is implemented here as a macro which calls ftell.

Uses: ftell