Path: 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 >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 ----------