Sujet : Re: Compiler utility
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.os.linux.miscDate : 08. Feb 2025, 14:12:41
Autres entêtes
Organisation : A little, after lunch
Message-ID : <vo7l89$25uo$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 07/02/2025 22:44, Lew Pitcher wrote:
On Fri, 07 Feb 2025 22:28:29 +0000, The Natural Philosopher wrote:
On 07/02/2025 17:35, root wrote:
when the compiler encountered the line
>
int main(argc,argv)
>
it threw up an error.
>
Well did you have
{
char *argv[]; int argc;
>
...underneath?
itym
char *argv[]; int argc;
{
as in
/* K&R C style function */
int main(argc,argv)
char *argv[]; int argc;
{
/*... */
return 0;
}
:-)
Yup. I fully adopted the 'definitions inside the function brackets' years ago and forgotted (sic!) the exact syntax.
-- All political activity makes complete sense once the proposition that all government is basically a self-legalising protection racket, is fully understood.