[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] non-null declarations
From: |
Ben Pfaff |
Subject: |
Re: [PATCH] non-null declarations |
Date: |
Thu, 10 Dec 2009 12:17:20 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Eric Blake <address@hidden> writes:
> Ben Pfaff <blp <at> cs.stanford.edu> writes:
>> ISO C99 requires that memchr's argument be nonnull even if __c is
>> zero, as follows. 7.21.1 "String function conventions" says that
>> pointer arguments must be valid even if the number of bytes is 0:
>
> But POSIX made the requirement tighter, as an extension to C, and gnulib
> guarantees the POSIX semantics:
That's great, then. Possibly very convenient occasionally.
--
Ben Pfaff
http://benpfaff.org
- Re: [PATCH] non-null declarations, (continued)
Re: [PATCH] non-null declarations, Eric Blake, 2009/12/10
Re: [PATCH] non-null declarations, Bruno Haible, 2009/12/10
Re: non-null declarations, recvfrom, sendto, Bruno Haible, 2009/12/10
Re: non-null declarations, recvfrom, sendto, Paolo Bonzini, 2009/12/10
Re: [PATCH] non-null declarations, Dmitry V. Levin, 2009/12/10
Re: [PATCH] non-null declarations, Bruno Haible, 2009/12/10