Deutsch   English   Français   Italiano  
<86semphp2p.fsf@linuxsc.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups: comp.lang.c
Subject: Re: "A diagram of C23 basic types"
Date: Wed, 02 Apr 2025 21:00:14 -0700
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <86semphp2p.fsf@linuxsc.com>
References: <87y0wjaysg.fsf@gmail.com> <vsj1m8$1f8h2$1@dont-email.me> <vsj2l9$1j0as$1@dont-email.me> <vsjef3$1u4nk$1@dont-email.me> <vsjg6t$20pdb$1@dont-email.me> <vsjjd1$23ukt$1@dont-email.me> <vsjkvb$25mtg$1@dont-email.me> <vsjlkq$230a5$2@dont-email.me> <vsjs5k$2bfc5$2@dont-email.me> <vsjvgu$2fpp1$1@dont-email.me> <GDfHP.1440068$SZca.528582@fx13.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Thu, 03 Apr 2025 06:00:15 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5fae27e4725ec0f03e8fd915a6650b3a";
	logging-data="3846998"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18umeSNIaeNwDLM/WGLYWDVHD4tJVHIJWw="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:4iQz7XxdPSnrRd3H7tivH428TwA=
	sha1:fCwXpQOUETW8pYLxbADT+4fpz/A=
Bytes: 2180

scott@slp53.sl.home (Scott Lurndal) writes:

> bart <bc@freeuk.com> 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 <string.h> header may also make visible
>          all symbols from <stddef.h>.  [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.  To make the extra
symbols visible, does there need to be something like

    #define __POSIX 1

to enable the non-conforming behavior?