Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit


» HP STK home
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
Content starts here

non-critical impact:

wcslen - incompatible return value on error (NcWn34)

I18N Impacts

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.


C/C++ Functionswcslen          

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
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.