Functions HI-TECH C LSEEK

Revision as of 22:23, 31 July 2017 by Kumokosi (talk | contribs) (Created page with "<strong>LSEEK</strong> ==SYNOPSIS== #include <unixio.h> long lseek(int fd, long offs, int wh) ==DESCRIPTION== This function operates in an analogous manner to <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LSEEK

SYNOPSIS

#include  <unixio.h>

long lseek(int fd, long offs, int wh)


DESCRIPTION

This function operates in an analogous manner to fseek(), however it does so on unbuffered low-level i/o file descriptors, rather than on STDIO streams. It also returns the resulting pointer location. Thus lseek(fd, 0L, 1) returns the current pointer location without moving it. -1 is returned on error.

SEE ALSO

open, close, read, write