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:03:34 -0800 Organization: None to speak of Lines: 22 Message-ID: <87344qw8xl.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> <20251231152909.00002bf9@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 31 Dec 2025 23:03:35 +0000 (UTC) Injection-Info: dont-email.me; posting-host="eea1bd566f7c70dcb85fabb9ef2f06cf"; logging-data="3106480"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bKjPpyEaGPVrGZoL2EKxp" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:e8wa1xWPCIuXwWb5Og0nRieK7q0= sha1:SlK4Q4J5pSGwdhpoKq0Yyn7A9n0= Xref: csiph.com comp.lang.c:396039 Michael S writes: > On Wed, 31 Dec 2025 03:10:52 -0000 (UTC) > Lawrence D’Oliveiro wrote: [...] >> Clearly on Windows, there are no guarantees about argc contains, so >> you shouldn’t be relying on it. > > How did you come to this conclusion? > Keith's test appears to show the opposite - he was not able to convince > the Windows system to call application with empty argv list. > Of course, he tried only one way out of many, but knowing how native > Windows system call works, it appears extremely likely that on Windows > argc < 1 is impossible. To be clear, my test didn't show anything about Windows. I ran the test under Cygwin, not under native Windows. [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */