Is NULL a valid parameter for the strcmp() function according to the C
standard?
I found the following code and I have doubts that it is valid
char *parm = NULL;
....
if (strcmp(parm, NULL))
bla,bla,bla
I think that it would be simpler and more correctly to write
if ( parm == NULL )
bla,bla,bla
MS Visual C++ 2005 EE abnormally terminates at runtime if the original if
statement is
used. However if the code is compiled with the IBM C/C++ compiler it runs
without terminating.
Vladimir Grigoriev