Re: Problem with strcat, strcpy,sprintf
Arctic Fidelity wrote:[color=blue]
>
> On Fri, 28 Oct 2005 18:34:47 -0400,
> Keith Thompson <kst-u@mib.org> wrote:[/color]
[color=blue][color=green][color=darkred]
> >> void main(void)[/color]
> >
> > No, no, no, no, no.
> >
> > main() returns int, not void.[/color]
>
> :-O I never knew...Wah?? Gah! Ouch.
> I'll keep that in definite mind next time.[/color]
The rules are that main returns int,
but implementations may accept alternate forms of main.
Since the alternate forms are not standard,
and this is a newsgroup about C and not about *your* compiler,
the alternate forms are off topic here.
--
pete
Arctic Fidelity wrote:[color=blue]
>
> On Fri, 28 Oct 2005 18:34:47 -0400,
> Keith Thompson <kst-u@mib.org> wrote:[/color]
[color=blue][color=green][color=darkred]
> >> void main(void)[/color]
> >
> > No, no, no, no, no.
> >
> > main() returns int, not void.[/color]
>
> :-O I never knew...Wah?? Gah! Ouch.
> I'll keep that in definite mind next time.[/color]
The rules are that main returns int,
but implementations may accept alternate forms of main.
Since the alternate forms are not standard,
and this is a newsgroup about C and not about *your* compiler,
the alternate forms are off topic here.
--
pete
Comment