#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; }
by: 发表于:2017-08-24 17:42:07 顶(0) | 踩(0) 回复
??
by: 发表于:2017-08-24 17:42:07 顶(0) | 踩(0) 回复
??
回复评论