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: srand(0) Date: Wed, 31 Dec 2025 15:29:15 -0800 Organization: None to speak of Lines: 14 Message-ID: <87pl7uut6c.fsf@example.invalid> References: <10ib0ka$3cgil$1@dont-email.me> <10icocl$3u4ua$1@dont-email.me> <10idg5m$3k87$3@dont-email.me> <20251224105114.0000714b@yahoo.com> <10ih0qo$13hnn$2@dont-email.me> <20251224174452.00003278@yahoo.com> <10ih3lu$13hnn$5@dont-email.me> <10ih5r2$25ihh$5@dont-email.me> <10iiell$1kfhj$1@dont-email.me> <10iirh8$25ihh$6@dont-email.me> <10ilfqp$2fs21$1@dont-email.me> <10ivq6b$1j8r3$1@dont-email.me> <10j206j$27s3j$1@dont-email.me> <10j247s$2925s$3@dont-email.me> <87fr8rwccq.fsf@example.invalid> <10j3mit$2o18r$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 31 Dec 2025 23:29:16 +0000 (UTC) Injection-Info: dont-email.me; posting-host="eea1bd566f7c70dcb85fabb9ef2f06cf"; logging-data="3106480"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/niLgGdPSzHrwe4eseJVaN" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:ScAOlKwXjBDLO0/lhCAg+vs3GPk= sha1:Md15vEmuVyird8YXoctvr6erEW8= Xref: csiph.com comp.lang.c:396044 Paul writes: [...] > # **Cross‑Platform Note** > The C standard does **not** guarantee that argv[0] contains the > program name — only that it exists. [...] That isn't quite correct, or is at least misleading. ISO C guarantees that argv[0] exists, but not that it points to a string. On some systems, it can contain be a null pointer. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */