ANSI draft interpretation questions
Karl Heuer
karl at haddock.ima.isc.com
Fri Jan 12 05:47:18 AEST 1990
In article <11907 at smoke.BRL.MIL> gwyn at 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 at haddock.isc.com or ima!haddock!karl), The Walking Lint
More information about the Comp.std.c
mailing list