Scott Robison wrote: > On Dec 3, 2014 12:57 AM, "Clemens Ladisch" <clem...@ladisch.de> wrote: >> Do you have a standard that allows NULL? The one I quoted does not. > > Note: I'll have to double check my copy of the C90 standard document, but > my re-reading of the C99 quote leads me to the conclusion that NULL is a > valid pointer by definition.
Then we have to go reference chasing: C99, 7.21.1: | Unless explicitly stated otherwise in the description of a particular | function in this subclause, pointer arguments on such a call shall | still have valid values, as described in 7.1.4. 7.1.4: | Each of the following statements applies unless explicitly stated | otherwise in the detailed descriptions that follow: If an argument to | a function has an invalid value (such as ... a null pointer ...) ..., | the behavior is undefined. Regards, Clemens _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users