#include <strings.h>
|
|
int
strcasecmp (const char *s1, const char *s2); |
|
int
strncasecmp (const char *s1, const char *s2, size_t len); |
The strncasecmp compares at most len characters.
#include <string.h>
#include <stdio.h>
int main()
{
int ret;
ret = strcasecmp("ABC","abc");
printf("strcasecmp of \"ABC\" \"abc\" is %d\n",ret);
ret = strcasecmp("abc","abc");
printf("strcasecmp of \"abc\" \"abc\" is %d\n",ret);
return 0;
}
Output
strcasecmp of "ABC" "abc" is 0
strcasecmp of "abc" "abc" is 0
|
© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
|