#include <wchar.h>
|
|
wchar_t *
wcswcs (const wchar_t *wcs1, const wchar_t *wcs2); |
#include <wchar.h>
/* Illustrates how to use wcswcs API */
int example_wcswcs()
{
/* source wide character string */
wchar_t *buf[20] = { L"fkhsdf%%38",L"rtti123123", };
wchar_t *str = wcswcs(buf[0],L"");
wchar_t *str1 = wcswcs(buf[1],L"\0");
if(wcscmp(str,buf[0]))
return 1;
if(wcscmp(str1,buf[1]))
return 1
return 0;
}
If wcs2 is a wide-character string with length as zero, the function returns wcs1.
|
© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
|