ack/modules/src/system/read.c

13 lines
190 B
C
Raw Normal View History

1987-01-06 11:41:50 +00:00
/* $Header$ */
#include <system.h>
int
sys_read(fp, bufptr, bufsiz, pnbytes)
File *fp;
char *bufptr;
int bufsiz, *pnbytes;
{
return (*pnbytes = read(fp->o_fd, bufptr, bufsiz)) >= 0;
}