🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2479

Re: translation phases

#2479
From: Colin Plumb
Date: Sun, 24 Feb 1991 04:54
15 lines
835 bytes
>In article <12696@darkstar.ucsc.edu> daniel@terra.ucsc.edu (Daniel Edelson) writes:
>>char msg[] = "\\
>>t";

gwyn@smoke.brl.mil (Doug Gwyn) wrote:
> Assuming the ASCII code set, the effect of the initializer is:
>	msg[0] = 9;
>	msg[1] = 0;
>
> I suspect there are so-called "ANSI C" compilers in existence that
> get this wrong.

Just for the record, gcc gets it right.
-- 
	-Colin
Technical Details
Message-ID: <1991Feb24.045421.1586@watdragon.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watdragon!rose!ccplumb
References: <12696@darkstar.ucsc.edu> <15303@smoke.brl.mil>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watdragon!rose!ccplumb
From: ccplumb@rose.uwaterloo.ca (Colin Plumb)
Subject: Re: translation phases
Message-ID: <1991Feb24.045421.1586@watdragon.waterloo.edu>
Sender: daemon@watdragon.waterloo.edu (Owner of Many System Processes)
Organization: University of Waterloo
References: <12696@darkstar.ucsc.edu> <15303@smoke.brl.mil>
Date: Sun, 24 Feb 1991 04:54:21 GMT
Lines: 15