⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strieql.c

📁 C语言常用的程序900例
💻 C
字号:
#include <stdio.h>
#include <ctype.h>

int strieql(char *str1, char *str2)
 {
   while ((toupper(*str1) == toupper(*str2)) && (*str1))
     {
       str1++;
       str2++;
     }

   return((*str1 == NULL) && (*str2 == NULL));
 }

void main(void) 
 {
   printf("Testing Abc and Abc %d\n", strieql("Abc", "Abc"));  
   printf("Testing abc and Abc %d\n", strieql("abc", "Abc"));  
   printf("Testing abcd and abc %d\n", strieql("abcd", "abc"));  
 }

⌨️ 快捷键说明

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