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

Stephen J. Friedl friedl at vsi.COM
Thu Oct 27 04:20:43 AEST 1988


I write:
<
< 	extern int write(int, const void *, unsigned);
<
< ... how does this deal with a successful
< write very near the maximum unsigned value?  The return
< would then appear to be negative.

Wayne A. Christopher writes:
<
< If you have a program that has a good reason for wanting to write 2 billion
< bytes at a time, please tell me what it is...

There are 16-bit machines out there for which this is
an entirely reasonable question.

-- 
Steve Friedl    V-Systems, Inc.  +1 714 545 6442    3B2-kind-of-guy
friedl at vsi.com     {backbones}!vsi.com!friedl    attmail!vsi!friedl
----Nancy Reagan on 120MB SCSI cartridge tape: "Just say *now*"----



More information about the Comp.std.c mailing list