Andreas Schwab wrote:
> s/worked fine earlier/invoked undefined behviour/

In your interpretation of the C99 standard: can you please tell, regarding
this sentence in section 7.21.5.1, and assuming a call memchr(ptr,c,n) with
ptr != NULL and n >= 0:

  "The memchr function returns a pointer to the located character, or a null 
pointer
   if the character does not occur in the object."

What is "the object"? Where does it start? Where does it end? How many 
"characters"
does it contain?

Bruno


Reply via email to