Embedded TCP/IP stack: fnet_fs_fseek

FNET

fnet_return_t fnet_fs_fseek ( fnet_fs_file_t  file,
fnet_int32_t  offset,
fnet_fs_seek_origin_t  origin 
)

Changes the file-position indicator for the specified file.

Parameters
fileFile descriptor, of which the position indicator should be changed.
offsetSpecifies the number of bytes from origin, where the position indicator should be placed. It may be negative and positive.
originOrigin position defined by fnet_fs_seek_origin_t.
Returns
This function returns:
See also
fnet_fs_ftell()

This function sets the position indicator associated with the file descriptor to a new position defined by adding offset to a reference position specified by origin.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net