ack/modules/src/system/write.c

18 lines
350 B
C
Raw Normal View History

1987-03-09 15:15:03 +00:00
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
1987-01-06 11:41:50 +00:00
/* $Header$ */
#include <system.h>
int
sys_write(fp, bufptr, nbytes)
File *fp;
char *bufptr;
int nbytes;
{
1989-06-30 14:46:27 +00:00
if (! fp) return 0;
1987-01-06 11:41:50 +00:00
return write(fp->o_fd, bufptr, nbytes) == nbytes;
}