non-critical impact:
wcslen - incompatible return value on error (NcWn34)
Problem description
The Tru64 UNIX and HP-UX error return values for this routine are incompatible.
The wcslen routine finds the length of a wide-character string. On Tru64 UNIX, when passed a NULL pointer, wcslen returns -1 cast to size_t. On HP-UX, for the same situation, wcslen returns 0 cast to size_t. Identifiers
 wcslen |
|
|
|
|
|
See also
Solution description
Review applicable references pages and code.
If your code checks for NULL pointers, you must modify your code to check for the correct return code. Otherwise, your application might show unexpected behavior. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| I18N |
C, C++ |
any HP-UX 11i version |
non-critical |
warning |
|