What's a good prototype for write(2)?

Henry Spencer henry at utzoo.uucp
Sat Oct 29 03:07:35 AEST 1988


In article <902 at vsi.COM> friedl at vsi.COM (Stephen J. Friedl) writes:
>What is a proper prototype for write(2)?  It would have to
>be one of:
>	extern int write(int, const void *, unsigned);
>or
>	extern int write(int, const void *, int);

The latter is correct.  See any Unix manual.  Yes, this means that the
size of a write buffer is limited to 32767 bytes on a 16-bit machine,
and that it is possible to create C objects that are too big for a
single write call.
-- 
The dream *IS* alive...         |    Henry Spencer at U of Toronto Zoology
but not at NASA.                |uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.std.c mailing list