-

Functions HI-TECH C LSEEK

From HI-TECH C for CP/M Fan WIKI(EN)
Jump to: navigation, search

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