delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/21/15:34:12

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <009d01c1a2c2$d714bc20$6e0510ac@et30>
From: "Jade" <jade AT cdict DOT umcc DOT cu>
To: <djgpp AT delorie DOT com>
Subject: What's going on
Date: Mon, 21 Jan 2002 15:30:25 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_009A_01C1A290.8C5733C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

KLook at this program and tell me if this suppose to guive a general =
protection fault.
I put this as an example because it makes the same thing that the =
program I'm working on. I compile both with the following command line
gcc <program.c>  -o <program.exe>=20
and the compiler didn't told me a single warning.
I'm working on a pentium adn running gcc under windows 2000 pro.
The program in wich I'm working needs to print argv.
#include<stdio.h>

int main (int argc,char * argv)
{

printf("%s \n",argv[0]);

printf("%s \n",argv[1]);
}

------=_NextPart_000_009A_01C1A290.8C5733C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>KLook at this program and tell me if =
this suppose=20
to guive a general protection fault.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I put this as an example because =
it&nbsp;makes the=20
same thing that the program I'm&nbsp;working on. I compile both with the =

following command line</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>gcc&nbsp;&lt;program.c&gt;&nbsp; -o=20
&lt;program.exe&gt; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and the compiler didn't told me a =
single=20
warning.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm working on a pentium adn running =
gcc under=20
windows 2000 pro.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The program in wich I'm working needs =
to print=20
argv.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>#include&lt;stdio.h&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int main (int argc,char * =
argv)<BR>{</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>printf("%s \n",argv[0]);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>printf("%s=20
\n",argv[1]);<BR>}</FONT></DIV></BODY></HTML>

------=_NextPart_000_009A_01C1A290.8C5733C0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019