[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
lseek

Seek a position on a file stream.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <unistd.h>
long lseek(int fildes, long offset, int origin);
Parameters:
Parameters for this facility are:
Remarks:
The function lseek() sets the file position location a specified byte offset from a specified initial location.
The origin of the offset must be one of the positions in "The lseek offset positions.."
The lseek offset positions.:
Return:
If successful, lseek() returns the number of bytes offset. If unsuccessful, it returns a value of negative one long integer.
See Also:
"fseek"
"ftell"
"open"
For example of lseek() usage:
Refer to "Example of close() usage.".
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000