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

Functions

long int ftell (FILE *stream)
 Get current position in stream. More...
 

Function Documentation

◆ ftell()

long int ftell ( FILE stream)

Get current position in stream.

Returns the current value of the position indicator of the stream.

Parameters
streamPointer to a FILE object that identifies the stream to be closed.
Returns
On success, the current value of the position indicator is returned. On failure, -1 is returned, and errno is set to a system-specific positive value.