#include <wchar.h>
|
|
int
wcsncasecmp (const wchar_t *s1, const wchar_t *s2, size_t n); |
#include <wchar.h>
/* Illustrates how to use wcsncasecmp API */
int example_wcsncasecmp()
{
/* input strings which need to be compared */
wchar_t *ws1=L"testcasecmp";
wchar_t *ws2=L"TESTCASECMP";
/* function call to compare the two strings which */
/* differ in case */
int retval = wcsncasecmp(ws1,ws2,11);
/* returns 0 if they are equal except the case or >1 */
/* if first string is greater than second string else -1 */
return retval;
}
|
© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
|