This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Calling strcmp/strncmp/strcasecmp/strncasecmp with NULL parameter


[Steven Keuchel]
> What does the C Standard say about this ?

I suggest you have a look at
<URL:http://www.opengroup.org/onlinepubs/009695399/toc.htm>, and
discover that the standard consider it undefined behaviour to call for
example strcmp() with illegal arguments.  The code calling strcmp()
like this is broken, and need to be fixed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]