📄 strncmp.c
字号:
#include <stdio.h>
#include <string.h>
void main(void)
{
printf("Comparing 3 letters Abc with Abc %d\n",
strncmp("Abc", "Abc", 3));
printf("Comparing 3 letters abc with Abc %d\n",
strncmp("abc", "Abc", 3));
printf("Comparing 3 letters abcd with abc %d\n",
strncmp("abcd", "abc", 3));
printf("Comparing 5 letters Abc with Abcd %d\n",
strncmp("Abc", "Abcd", 5));
printf("Comparing 4 letters abcd with abcd %d\n",
strncmp("abcd", "abcd", 4));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -