home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 48
/
Amiga_Dream_48.iso
/
Atari
/
c
/
sozobon-v2
/
dlibsrc.lha
/
LSEEK.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-10-05
|
286b
|
22 lines
#include <stdio.h>
#include <errno.h>
long lseek(h, where, how)
int h;
long where;
int how;
{
register long rv;
rv = gemdos(0x42, where, h, how);
if(rv < 0)
errno = ((int) rv);
return(rv);
}
long tell(h)
int h;
{
return(lseek(h, 0L, SEEK_CUR));
}