From -4552824254166463388
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,c16a8bbbb9f41338
X-Google-Attributes: gidf78e5,public
X-Google-Thread: 1149ec,c16a8bbbb9f41338
X-Google-Attributes: gid1149ec,public
X-Google-ArrivalTime: 1993-09-02 18:33:33 PST
Xref: gmd.de comp.std.c:3976 comp.std.c++:3490
Newsgroups: comp.std.c,comp.std.c++
Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!caen!usenet.coe.montana.edu!decwrl!csus.edu!netcom.com!xtifr
From: xtifr@netcom.com (Chris Waters)
Subject: Re: Legal Prototypes for the "main" Function
Message-ID: <xtifrCCr7wp.E8@netcom.com>
Keywords: main function prototype C ANSI American National Standard X3.159-1989
Organization: NETCOM On-line Communication Services (408 241-9760 guest)
References: <2637nb$h30@crchh327.bnr.ca> <263gn7$2ui@usenet.pa.dec.com> <264uee$kpl@hydrogen.smallworld.co.uk>
Date: Fri, 3 Sep 1993 01:24:25 GMT
Lines: 25

In <264uee$kpl@hydrogen.smallworld.co.uk> arthur@Smallworld.co.uk (Arthur Chance) writes:

>In article <263gn7$2ui@usenet.pa.dec.com>, diamond@jit.dec.com (Norman Diamond)
>writes:
>> It might be sensible to make the argc parameter size_t instead of int, but
>> I think it will be a long (:-) time before we see operating systems that
>> permit passing more than 32767 strings in a command line, or invokers who
>> wish to pass such.

>egrep pattern `find /var/spool/news -type f -print`

>We have ~200K news articles online, so argc would be _way_ above 32767.
>This is 10% joke, 90% serious - I actually found myself trying to do this
>a few days ago. Of course, it didn't work. :-}

Hmm, on any *reasonable* system, an int will hold approx +-2 billion, 
so this shouldn't be an issue on most machines that *have* a
/var/spool/news directory.  I don't see what relevance 32767 has to
ints!  Except, perhaps on messy-DOG systems.  :-)

(OTOH, with the command given above, the size of argv is more likely to
be a problem than the size of argc!)
-- 
Chris Waters    | "By experimentation, I have found that if I stand still and
xtifr@netcom.COM| spin a universe around me, I get dizzy." -- W. Allison


