🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #6178

Re: ANSI draft interpretation questions

#6178
From: Karl Heuer
Date: Thu, 11 Jan 1990 18:47
12 lines
1169 bytes
In article <11907@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes:
>Definitely some additional "slop space" must be provided, somehow.
>[Either two or four bytes, depending on which page of the pANS is correct.]

Hmm, is it really bytes?  Or (multibyte) characters?

Suppose MB_LEN_MAX == 2 and that '@' is a two-byte character whose bytes are
{0x84, 0x30}.  If I call scanf("@") and the input stream contains 0x84 0x31,
does it push back one byte or two?  Would it make any difference if I wrote it
as scanf("\x84\x30")?

Karl W. Z. Heuer (karl@haddock.isc.com or ima!haddock!karl), The Walking Lint
Technical Details
Message-ID: <15618@haddock.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!spdcc!ima!haddock!karl
References: <21623@mimsy.umd.edu> <11879@smoke.BRL.MIL> <21675@mimsy.umd.edu> <11897@smoke.BRL.MIL> <21690@mimsy.umd.edu> <11907@smoke.BRL.MIL>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!spdcc!ima!haddock!karl
From: karl@haddock.ima.isc.com (Karl Heuer)
Newsgroups: comp.std.c
Subject: Re: ANSI draft interpretation questions
Message-ID: <15618@haddock.ima.isc.com>
Date: 11 Jan 90 18:47:18 GMT
References: <21623@mimsy.umd.edu> <11879@smoke.BRL.MIL> <21675@mimsy.umd.edu> <11897@smoke.BRL.MIL> <21690@mimsy.umd.edu> <11907@smoke.BRL.MIL>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Cambridge, MA 02138-5302
Lines: 12