bug-gnulib
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]