strncmpi.c
来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 19 行
C
19 行
#include <string.h>
#include <stdio.h>
void main(void)
{
char *buf1 = "MADE IN korea";
char *buf2 = "made in chosun";
int result;
result=strcmp(buf2, buf1);
if (result!=0)
printf("buf1 and buf2 are not same by strcmp\n");
else
printf("buf1 and buf2 are same by strcmp\n");
result=strncmpi(buf2, buf1,8);
if (result!=0)
printf("buf1 and buf2 are not same by strncmpi\n");
else
printf("buf1 and buf2 are same by strncmpi\n");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?