Deutsch   English   Français   Italiano  
<86wmkmfhaz.fsf@linuxsc.com>

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

Path: ...!feeds.phibee-telecom.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups: comp.lang.c
Subject: Re: is it possible to have functions with 0, 1, or 2 args?
Date: Sun, 11 Aug 2024 22:20:36 -0700
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <86wmkmfhaz.fsf@linuxsc.com>
References: <7q-dnbTDU4oBES37nZ2dnZfqnPednZ2d@brightview.co.uk> <20240805151946.00000bce@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Mon, 12 Aug 2024 07:20:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f42e4005105099d89c60a754521770ce";
	logging-data="3317302"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX184RMfR4plNlnMrkdgZctRIfX9jQfoYP4Q="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:DDEZjRB8G6Yl/p6SHwRxsCbwHcg=
	sha1:QTomjl613mkidNQ7HP5jWBzif4s=
Bytes: 1730

Michael S <already5chosen@yahoo.com> writes:

> On Mon, 05 Aug 2024 08:26:04 +0000
> Mark Summerfield <mark@qtrac.eu> wrote:
>
> According to my understanding, vararg functions without arguments will
> become possible in C23.  But since fully functional C23 compilers do not
> exist yet, right now the answer to your question is "No".

Even in C99 varargs functions can be called without arguments.
The question here is more subtle.  In fact it is possible even
in C99 and C11 to do what he wants, but it isn't easy, and it
is far from obvious how to go about it.  Still, if the question
is "can this be done?", the answer is Yes even now.