🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9319

putw return value

#9319
From: notes
Date: Sat, 13 Sep 1986 21:15
15 lines
1147 bytes
Question:  What should "putw" return?

Our I/O library returns the error code for the "putw" operation, which is
usually 0.   In perusing BSD4.2 and ATT5.2.2 source, I see the same 
functionality.

Yet the man pages seem to indicate that "putw" should return the "word"
written.

Is there a discrepancy between the code and the documentation?

(The Perennial C test suite makes mention in a "bugs" section that the
VAX 11/750 also returns "0" for putw in the particular test.)

Dave Ray -- uucp: {ucf-cs|allegra}!novavax!hrshcx!hcx1!daver
Technical Details
Message-ID: <102@hcx1.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!hplabs!oblio!nsc!csi!epimass!ucat!pesnta!peora!ucf-cs!novavax!hrshcx!hcx1!notes

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!hplabs!oblio!nsc!csi!epimass!ucat!pesnta!peora!ucf-cs!novavax!hrshcx!hcx1!notes
From: notes@hcx1.UUCP
Newsgroups: net.lang.c
Subject: putw return value
Message-ID: <102@hcx1.UUCP>
Date: Sat, 13-Sep-86 17:15:46 EDT
Article-I.D.: hcx1.102
Posted: Sat Sep 13 17:15:46 1986
Date-Received: Wed, 17-Sep-86 01:57:19 EDT
Sender: notes@hcx1.UUCP
Organization: Harris CSD, Fort Lauderdale, Florida
Lines: 17
Nf-ID: #N:hcx1:5500004:000:539
Nf-From: hcx1!daver    Sep 12 09:34:00 1986