Article View: comp.std.c
Article #1424Re: fwrite(buf, 0, 42, stream) == ?
From: Doug Gwyn
Date: Wed, 13 Jun 1990 04:12
Date: Wed, 13 Jun 1990 04:12
8 lines
864 bytes
864 bytes
In article <Fkucoph@cs.psu.edu> flee@psuvax1.cs.psu.edu (Felix Lee) writes: >What is fwrite(buf, 0, 42, stream) supposed to return? I feel it >should return 42 when it successfully writes 42 objects of zero size, >but existing implementations seem to return 0. Strictly speaking, there are no semantics defined for such usage, because the "0" is supposed to be the size of some member of an array, and there are no 0-sized objects in C.
Technical Details
Message-ID:
<13094@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwynReferences:
<Fkucoph@cs.psu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: fwrite(buf, 0, 42, stream) == ? Message-ID: <13094@smoke.BRL.MIL> Date: 13 Jun 90 04:12:00 GMT References: <Fkucoph@cs.psu.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 8