🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4358

Re: String literal as initializer

#4358
From: Dave Goodman
Date: Tue, 14 Nov 1995 22:44
23 lines
1136 bytes
In article <1995Nov14.062159.20990@sq.com>, Mark Brader <msb@sq.com> wrote:

> Dave Goodman (daveg@netline.net) asks about whether
> 
> 	char s[3] = "hello";
> 
> violates a constraint:
> 
> Larry Jones (larry.jones@sdrc.com) answers:
> > Several.  There's a (pending?) Defect Report / Technical Corrigendum
> > that clarifies that a string literal is equivalent to a brace-enclosed
> > list of characters.

The article by Larry Jones which Mark Brader quotes did not show up at our
site.  I would be extremely grateful if some kind soul would grab it
before it expires, and email it to me.

Thanks a bunch.

--

Dave Goodman
daveg@netline.net
Technical Details
Message-ID: <48b644$7pf@tesla.netline.net>
Path: arc1-ca.pugleaf.net!news.netline.net!not-for-mail
References: <4859t8$5o0@tesla.netline.net> <488flk$h7n@info1.sdrc.com> <1995Nov14.062159.20990@sq.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.netline.net!not-for-mail
From: daveg@netline.net (Dave Goodman)
Newsgroups: comp.std.c
Subject: Re: String literal as initializer
Date: 14 Nov 1995 17:44:20 -0500
Organization: The Center for Creative Confusion, Sarasota, FL
Message-ID: <48b644$7pf@tesla.netline.net>
References: <4859t8$5o0@tesla.netline.net> <488flk$h7n@info1.sdrc.com> <1995Nov14.062159.20990@sq.com>
NNTP-Posting-Host: tesla.netline.net
Keywords: string literal, initializer