contents   index   previous   next



Clib.fgetpos()

syntax:

Clib.fgetpos(filePointer, pos)

where:

filePointer - pointer to file to use.

 

pos - variable to hold the current file position.

 

return:

number - 0 on success, else non-zero and stores an error value in Clib.errno.

 

description:

This method stores the current position of the file stream filePointer for future restoration using Clib.fsetpos(). The file position will be stored in the variable pos; use it with Clib.fsetpos() to restore the cursor to its position.

 

see:

Clib.fsetpos()

 

 


Clib.fgets()