🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #389

Re: Initialisation of unsigned strings

#389
From: Walter Murray
Date: Fri, 28 Jul 1989 15:35
14 lines
1065 bytes
>First I thought that gcc was being too pedantic, but unfortunately the May
>1988 draft seems to agree: 3.1.2.5 classifies "unsigned char" as an unsigned
>integer type, and 3.5.7 says that an array of character type may be initialised
>by a character string literal. Why could it not say "array of plain, signed or
>unsigned char"?

Note that "unsigned char" IS a character type, as well as an unsigned
integer type.  In the May, 1988, draft, see page 23, line 9 (3.1.2.5).
So it is legal to initialize an array of unsigned char with a character
string literal.

Walter Murray
Not speaking for X3J11
----------
Technical Details
Message-ID: <12570021@hpclwjm.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!purdue!decwrl!hplabs!hp-ses!hpcuhb!hpcllla!hpclisp!hpclwjm!walter
References: <438@mjolner.tele.nokia.fi>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!purdue!decwrl!hplabs!hp-ses!hpcuhb!hpcllla!hpclisp!hpclwjm!walter
From: walter@hpclwjm.HP.COM (Walter Murray)
Newsgroups: comp.std.c
Subject: Re: Initialisation of unsigned strings
Message-ID: <12570021@hpclwjm.HP.COM>
Date: 28 Jul 89 15:35:33 GMT
References: <438@mjolner.tele.nokia.fi>
Organization: Hewlett-Packard Calif. Language Lab
Lines: 14