cmpcase.c

来自「不错书对C++/C程序员很有用的大家不要错过.」· C语言 代码 · 共 17 行

C
17
字号
#include <stdio.h>
#include <string.h>

void main(void)
 {
   printf("Comparing Abc with Abc %d\n", 
     stricmp("Abc", "Abc"));
   printf("Comparing abc with Abc %d\n", 
     stricmp("abc", "Abc"));
   printf("Comparing 3 letters abcd with ABC %d\n", 
     strncmpi("abcd", "ABC", 3));
   printf("Comparing 5 letters abc with Abcd %d\n", 
     strncmpi("abc", "Abcd", 5));
 }   


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?