Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: va_start without the first argument? Date: Fri, 10 Mar 2017 12:32:00 -0800 Organization: None to speak of Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="32eeb709695d050fc03169aab3730058"; logging-data="2669"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cX9ZqcCZ1C6sL1xVlbZ6f" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:ulSfWt5/JD/oFYR/lVG9+Bfj9kU= sha1:FGMtunXzjBoxQsj2LctS8vre8Ow= Xref: csiph.com comp.lang.c:105751 Thiago Adams writes: > Is it possible to create a var args function without the > first argument? (firstArgument in va_start) > > void F(...) No. The va_start macro requires the name of the last non-variadic parameter, and syntax of a parameter-type-list requires at least one parameter-declaration (N1570 6.7.6). [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"