函数名: memicmp
功 能: 比较两个串s1和s2的前n个字节, 忽略大小写
用 法: #include <stdio.h>
int memicmp(void *s1, void *s2, unsigned n);
程序例:
#include <stdio.h>
#include <string.h>
int main(void)
{
char *buf1 = "ABCDE123";
char *buf2 = "abcde456";
int stat;
stat = memicmp(buf1, buf2, 5);
printf("The strings to position 5 are ");
if (stat)
printf("not ");
printf("the same\n");
return 0;
}