Article View: alt.msdos.programmer
Article #1184Re: Pascal program works but not C program!
From: Shadow.King
Date: Fri, 19 Jan 1996 00:51
Date: Fri, 19 Jan 1996 00:51
14 lines
1058 bytes
1058 bytes
: >
: > void main(int argc,char *argv[])
: ^-----------------------------This one too, but not too serious
: > {
: > }
: >
: >
This isn't really a problem, it's usually just the error code that the
program returns to dos when it exits. As far as I know it doesn't HAVE to
do this so just void main should be fine, I usually do the saem thing
with simple programs that don't need to set the error level on exit and
I've had no problems whatsoever with it. It is if the program is supposed
to return an error level though.
Technical Details
Message-ID:
<4dmpv0$t77@fangz.com>Path:
arc1-ca.pugleaf.net!fangz.com!not-for-mailReferences:
<4cdpr2$psi@lugb.latrobe.edu.au> <Pine.SV4.3.91-heb-2.04.960104114930.16292A-100000@cs.technion.ac.il>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fangz.com!not-for-mail From: shad@fangz.com (Shadow.King ) Newsgroups: alt.msdos.programmer,comp.lang.c Subject: Re: Pascal program works but not C program! Followup-To: alt.msdos.programmer,comp.lang.c Date: 18 Jan 1996 19:51:44 -0500 Organization: fangz.com Message-ID: <4dmpv0$t77@fangz.com> References: <4cdpr2$psi@lugb.latrobe.edu.au> <Pine.SV4.3.91-heb-2.04.960104114930.16292A-100000@cs.technion.ac.il> NNTP-Posting-Host: fangz.com X-Newsreader: TIN [UNIX 1.3 BETA-950824-color PL0]