Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: printf and time_t Date: Sun, 08 Feb 2026 04:03:23 -0800 Organization: None to speak of Lines: 18 Message-ID: <87ikc75to4.fsf@example.invalid> References: <10jfol6$2u6r8$1@news.xmission.com> <86zf6kkjw0.fsf@linuxsc.com> <20260111235104.00001463@yahoo.com> <86ms1pj0bc.fsf@linuxsc.com> <10ltjjt$1o4pk$1@dont-email.me> <865x8cio5y.fsf@linuxsc.com> <10lvt1s$2fu8f$1@dont-email.me> <10lvul0$2gps1$1@dont-email.me> <10m024m$2hqvi$1@dont-email.me> <10m091i$2kiff$1@dont-email.me> <10m0b0g$2l6li$1@dont-email.me> <10m1vl7$35irp$1@dont-email.me> <10m2kpb$3cm2p$1@dont-email.me> <10m374q$2d053$1@dont-email.me> <10m39sd$3ladr$1@dont-email.me> <87ikca8nj2.fsf@example.invalid> <10m4neq$591t$1@dont-email.me> <20260206144732.00002e5c@yahoo.com> <10m4ot0$591t$2@dont-email.me> <20260208105246.000046a0@yahoo.com> <10m9rds$1h1k5$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 08 Feb 2026 12:03:24 +0000 (UTC) Injection-Info: dont-email.me; posting-host="d37104618b74407704e0de1d1159f737"; logging-data="2014106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cxIHuHp8JxMLnbjahejzP" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:mcGRSMzUXKAiwRDy4C0LJioYIvg= sha1:PFq9Q9kcZ6/9ylGE2ydYicj6Ydo= Xref: csiph.com comp.lang.c:396645 Janis Papanagnou writes: [...] > C's "varargs" mechanism always appeared kludgy to me. Though I > haven't followed "varargs" in "C" since K&R times, but I've a > faint impression that something has been done and changed since > back then. What was it, or is it still supported [only] in its > original form? Pre-ANSI C had a header, used to process arguments to variadic functions like printf. C89 replaced it with , which hasn't changed much since then. Consult any recent standard draft for details. C23 removes the requirement for the last non-variadic argument to be passed to the va_start macro, allowing for functions with *only* variadic parameters. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */