int kstrncasecmp(
const char *istr1,
const char *istr2,
size_t num)
none
none
char *s1 = "SAME-DIFFERENT";
char *s2 = "Same-Really Different";
int same, different;
same = kstrncasecmp(s1, s2, 5);
different = kstrncasecmp(s1, s2, 10);
printf("same is %d\ndifferent is %d\n", same, different);
the resulting output will be:
same is 0 different is -14
because up to the fifth character they are the same, and on the sixth character the returned result will be 'D' - 'R'.
$BOOTSTRAP/objects/library/kutils/src/strings.c