MicrOS
fgetpos.c File Reference
#include "../stdio.h"

Functions

int fgetpos (FILE *stream, fpos_t *pos)
 Get current position in stream. More...
 

Function Documentation

◆ fgetpos()

int fgetpos ( FILE stream,
fpos_t pos 
)

Get current position in stream.

Retrieves the current position in the stream.

Parameters
streamPointer to a FILE object that identifies the stream to be closed.
posPointer to a fpos_t object. This should point to an object already allocated.
Returns
On success, the function returns zero. In case of error, errno is set to a platform-specific positive value and the function returns a non-zero value.