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: CLOCKS_PER_SEC Date: Sun, 16 Oct 2016 11:32:15 -0700 Organization: None to speak of Lines: 25 Message-ID: References: <58034f7d.3471765@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="47375d5ce36f0082b94983afe63eb3b3"; logging-data="7366"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6mUHrk+QQU7BpfWnXQH2A" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:jMVwwtV/dSed9dhQcpQlAcuAufg= sha1:e3ATrQOySfOtGK0wlmmrTQTSesM= Xref: csiph.com comp.lang.c:94932 raltbos@xs4all.nl (Richard Bos) writes: > Keith Thompson wrote: >> Is notepad.exe under C:/windows in all versions of Windows? Or at >> least in all the versions you're concerned with? Perhaps "NL:" >> would be a better choice. IIRC that's the Windows equivalent of >> /dev/null. You could conceivably get a false positive if there >> happens to be a file with that name in the current directory, >> but that's probably not worth worrying about. > > It's "NUL:", and you can't create a file with that name, but I'm not > sure you can open it the way Bart is doing, under all circumstances and > all versions of Windows. You're right, I misremembered the name. It's "NL:" (or "NLA0:") on VMS. > In any case, relying on a Windows-specific file means you're limited to > Windows and Linux-like systems. At least it would be wise to add a > configuration file to override this detection should it become necessary > in the future. -- 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"