Eric Blake <e...@byu.net> 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