🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5699

Re: ansi printf questions

#5699
From: Doug Gwyn
Date: Mon, 06 Feb 1989 17:21
7 lines
793 bytes
In article <15188@oberon.USC.EDU> blarson@skat.usc.edu (Bob Larson) writes:
-One further question:  On a machine with 16 bit short and 32 bit int,
-what should:
-printf("%hd", 65537);
-print?  65537 (ignore the h)?  1 (truncate to short)?  unspecified?

Unspecified.  Do whatever you like.
Technical Details
Message-ID: <9604@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!ukma!rutgers!cmcl2!adm!smoke!gwyn
References: <15159@oberon.USC.EDU> <9591@smoke.BRL.MIL> <372@twwells.uucp> <9594@smoke.BRL.MIL> <15188@oberon.USC.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!ukma!rutgers!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn )
Newsgroups: comp.std.c
Subject: Re: ansi printf questions
Message-ID: <9604@smoke.BRL.MIL>
Date: 6 Feb 89 17:21:07 GMT
References: <15159@oberon.USC.EDU> <9591@smoke.BRL.MIL> <372@twwells.uucp> <9594@smoke.BRL.MIL> <15188@oberon.USC.EDU>
Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 7