Path: ...!news.tomockey.net!news.samoylyk.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: "A diagram of C23 basic types" Date: Thu, 03 Apr 2025 11:47:03 -0700 Organization: None to speak of Lines: 35 Message-ID: <85plhtjd5k.fsf@nosuchdomain.example.com> References: <87y0wjaysg.fsf@gmail.com> <86semphp2p.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Thu, 03 Apr 2025 20:47:03 +0200 (CEST) Injection-Info: dont-email.me; posting-host="658736fab9029f452335cecd036b8387"; logging-data="1367561"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18P0pXzbvJmphLK6qWFiiEz" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:xJ9fKQjAj0jziQv3p/7VOokEjLI= sha1:PNW5kz9vTPfH6NcTNU6tH7QUeJo= Bytes: 2666 scott@slp53.sl.home (Scott Lurndal) writes: > Tim Rentsch writes: >>scott@slp53.sl.home (Scott Lurndal) writes: >>> bart writes: >>[...] >>>> So it is not true that you need include stddef.h, nor obvious >>>> that that is where NULL is defined, if you are used to having it >>>> available indirectly. >>> >>> Indeed, and it is well documented. >>> >>> For example, in the POSIX description for the string functions >>> you'll find the following statement: >>> >>> [CX] Inclusion of the header may also make visible >>> all symbols from . [Option End] >>> >>> This is true for a number of POSIX headers, include those you >>> enumerate above. >>> >>> [CX] marks a POSIX extension to ISO C. >> >>How strange. I don't know why anyone would ever want either to >>rely on or to take advantage of this property. > > Some existing unix implementations at the time the standard was adopted > had that behavior and the committee was not willing to break existing > implementations. You mean the POSIX standard, yes? The C standard does not permit to include . -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */