Article View: gnu.gcc.help
Article #49581gcc bug?
From: Mitch M. Lee
Date: Fri, 07 Jan 1994 13:57
Date: Fri, 07 Jan 1994 13:57
25 lines
1100 bytes
1100 bytes
For some reason, when I compile the following with
gcc, it does not work. However when I compile with
cc, it works as expected. Anyone know why? Perhaps
I'm not seeing something trivial here?
=================================================
#include <stdio.h>
#include <strings.h>
#include <ctype.h>
char *stringtoupper(s)
char *s;
{
while (*s != '\0') {
*s = toupper(*s);
s++;
}
}
main()
{
printf("%s\n", stringtoupper("My test"));
printf("%s\n", stringtoupper("works"));
}
Technical Details
Message-ID:
<MML.94Jan7135716@trinity.trinity.llnl.gov>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!olivea!koriel!lll-winken.llnl.gov!winken!mmlShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,32c345ab94e214c5,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-07 14:40:44 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!olivea!koriel!lll-winken.llnl.gov!winken!mml From: mml@trinity.trinity.llnl.gov ( Mitch M. Lee ) Newsgroups: gnu.gcc.help Subject: gcc bug? Date: 7 Jan 94 13:57:16 Organization: Lawrence Livermore Lab Lines: 25 Distribution: gnu Message-ID: <MML.94Jan7135716@trinity.trinity.llnl.gov> NNTP-Posting-Host: trinity.llnl.gov