[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] #1 Update on port to OS400/EBCDIC

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-02-11 19:02:45 CET

Branko Èibej <brane@xbc.nu> writes:

> The canonical prototype for main() is:
>
> int main (int argc, const char *argv[]);

The C99 ISO standard explicitly allows (see 5.1.2.2.1/1)

     int main(void) { /* ... */ }

and

     int main(int argc, char *argv[]) { /* ... */ }

and states that any equivalent may be used. There is a footnote that
states that "char ** argv" is equivalent to "char *argv[]". I don't
have a copy of the earlier C90 standard, but I don't think it's any
different.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 11 19:03:11 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.