#include <wchar.h>
|
size_t
wcsnlen (const wchar_t *wcs, size_t maxlen); |
#include <wchar.h> /* Illustrates how to use wcsnlen API */ size_t example_wcsnlen() { /* input string for which length to be found */ wchar_t *ws=L"testwcsnlen"; /* find the length of the wide char string by */ /* calling wcsnlen */ size_t retval = wcsnlen(ws,14); /* return the number of wide chars in the string */ /* if retval is less than 14 Else return 14 as the */ /* length of the string */ return retval; }
© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |