Deutsch   English   Français   Italiano  
<v4mb92$3ak$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!feed.opticnetworks.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c
Subject: Re: Whaddaya think?
Date: Sun, 16 Jun 2024 11:29:05 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <v4mb92$3ak$1@dont-email.me>
References: <666ded36$0$958$882e4bbb@reader.netnews.com>
 <20240616015649.000051a0@yahoo.com> <v4lm16$3s87h$4@dont-email.me>
 <v4lmso$3sl7n$1@dont-email.me> <v4lr0m$3tbpj$1@dont-email.me>
 <8734pd4g3s.fsf@nosuchdomain.example.com> <v4ltuj$3trj2$1@dont-email.me>
 <87y17530a0.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 16 Jun 2024 11:29:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="567efb17d94aca7729125b64ceeb67a7";
	logging-data="3412"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18ixOnFC2qdoux4uVLZ5q0l"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:q6DNQiVZo10hlZpI9hYNZCuJaPo=
In-Reply-To: <87y17530a0.fsf@nosuchdomain.example.com>
X-Enigmail-Draft-Status: N1110
Bytes: 2269

On 16.06.2024 07:49, Keith Thompson wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>>
>> void main (int argc, char * argv[])
> 
> *Ahem* -- int main.

Never sure about whether it was/is correct to 'void'-declare
the return value and/or the [unused] main() arguments. (I'm
still from the early C time when types were even omitted as
function return specification (presuming an implicit int or
no return), as in the K&R book. During the past decades I
tended to declare my intention by writing f(void) instead
of f() and void f() where no results are delivered. K&R at
least seems to say that 'void' can only be declared for the
return type of functions that do not return anything.

As long as my C compiler doesn't mind  'int main (void)'  or
'void main (int, char **)'  I don't care much for test code.
I'm sure this stance of mine might be considered offensive
in a 'C' NG. - Apologies! :-)

Janis