Mail Archives: djgpp/2001/10/10/19:34:09
(for sake of serious discussion you understand)
Just what the HE** other choices would you want for
main other than "int" or "void" ??????
Why/How make it more complicated? For what reason
is there to say if it is NOT explicitly given, its an "int",
otherwise, you must declare "void" (icky, I know).
I can see it now:
char *main(...argc, argv) { ... }
)sorry about getting those backwards; you know how the mind warps(
On 10 Oct 2001 17:10:16 GMT, Hans-Bernhard Broeker
<broeker AT physik DOT rwth-aachen DOT de> wrote:
>Radical wrote:
>> defining main simply:
>
>> main(...argv,...argc)
>
>> should indeed DEFAULT to the int main(...argv,...argc) construct,
>
>It shouldn't. Not since ANSI C99 was ratified, which disallowed
>implicit function return types, among other things.
>
>> but doesn't (older compilers would have no problemwith this).
>
>It does, unless you call for C99 compatibility. But it generates a
>(perfectly deserved) warning.
- Raw text -