S
spibou
What is strcmp supposed to return if one or both arguments passed to it
are NULL ?
are NULL ?
What is strcmp supposed to return if one or both arguments passed to it
are NULL ?
What is strcmp supposed to return if one or both arguments passed to it
are NULL ?
What is strcmp supposed to return if one or both arguments passed to it
are NULL ?
What is strcmp supposed to return if one or both arguments passed to it
are NULL ?
goose said:Why don't you try it and let us know?
Keith said:Perhaps because trying it won't actually answer the question.
goose said:This is turning out to be an embarrassingly bad day for me
goose said:Or read the standards document?
I read the Standard. It didn't say.
I read the Standard. It didn't say.
Richard Heathfield said:(e-mail address removed) said:
If the Standard doesn't define the behaviour, the behaviour is undefined.
Richard Heathfield <[email protected]> writes:
And in this case, the Standard states explicitly that the behavior is
undefined.
C99 7.1.4p1:
are NULL ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.