Path: csiph.com!news.swapon.de!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: Tue, 14 Mar 2017 08:57:49 -0700 Organization: None to speak of Lines: 26 Message-ID: References: <6efb4ec5-8a50-4ecd-95ac-3328682a7a03@googlegroups.com> <1c6010ab-c0e6-468b-8b9d-94cbe2aa4ac8@googlegroups.com> <3fb4148c-8b5b-468c-8399-e5a5fc8575ee@googlegroups.com> <7fda2e02-9a6a-411f-9d91-1ad9030ec778@googlegroups.com> <58c79f35.356562@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="68145e82dff5cec9d4077a7833a68c0b"; logging-data="25150"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19f1/TRXwzadWE+OxXy7qfv" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:bPzT3Lebyr8ooAzo3t3fSH/irFM= sha1:PPCk2cI6Qk9kDKGf+P9nwqJ9RrI= Xref: csiph.com comp.lang.c:106044 raltbos@xs4all.nl (Richard Bos) writes: > David Brown wrote: >> On 13/03/17 18:54, BartC wrote: >> > (Just yesterday, I had to need to wait a second or so before proceeding >> > in a bit of code. I couldn't just use a loop counting to a billion, as >> > this was gcc on Linux (so no alternatives), and it would just disregard >> > the loop. Things such as sleep() were not practical, I ended up using >> > getchar() then waiting for someone to press Enter. >> > >> > It gets silly when you have to fight the compiler to stop it ignoring >> > your intentions.) >> >> > > Never mind volatile, which is a, ahem, non-stable resource - whatever > happened to !? has no sleep function. The POSIX sleep() function is declared in . (I have no idea why sleep() would not be practical for BartC's requirements.) -- 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"