| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
| Message-ID: | <000c01c19c85$ba51f000$2de1a0c8@rjo.virtua.com.br> |
| From: | "Pedro Izecksohn" <izecksohn AT yahoo DOT com> |
| To: | <djgpp AT delorie DOT com> |
| Subject: | return 1; |
| Date: | Sun, 13 Jan 2002 20:57:25 -0200 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 5.50.4522.1200 |
| Disposition-Notification-To: | "Pedro Izecksohn" <izecksohn AT yahoo DOT com> |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200 |
| Reply-To: | djgpp AT delorie DOT com |
This is a multi-part message in MIME format.
------=_NextPart_000_0009_01C19C74.E7E3F420
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
Hi, What do happen when main return 1 ? Does the program passes this
value to DOS's ERRORLEVEL ? Why in my code errorlevel isn't catching the 1
value ? I'm attaching here the .cc and the .bat codes.
------=_NextPart_000_0009_01C19C74.E7E3F420
Content-Type: application/octet-stream;
name="terl.bat"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="terl.bat"
erl
if errorlevel 1 echo 1
if errorlevel 0 echo 0
------=_NextPart_000_0009_01C19C74.E7E3F420
Content-Type: application/octet-stream;
name="ERL.CC"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="ERL.CC"
int main () {
return 1;
}
------=_NextPart_000_0009_01C19C74.E7E3F420--
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |