当前位置:网站首页>strcasecmp和strncasecmp
strcasecmp和strncasecmp
2022-07-30 05:39:00 【m~~?】
int strcasecmp(const char *s1, const char *s2);
int strncasecmp(const char *s1, const char *s2, size_t n);
忽略大小写进行比较,差别是strncasecmp只比较s1的前n个字符。
返回值:相等返回0,s1的长度小于s2返回负数,大于返回正数。
The strcasecmp() function compares the two strings s1 and s2, ignoring the case of the characters. It returns an integer less than, equal to,or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.
边栏推荐
猜你喜欢
pwn-ROP
瑞吉外卖项目:新增菜品与菜品分页查询
[详解C语言]一文带你玩转数组
[Image detection] Research on cumulative weighted edge detection method based on grayscale image with matlab code
934.最短的桥(广度优先搜索)
三子棋游戏——C语言
PyCharm usage tutorial (more detailed, picture + text)
mysql time field is set to current time by default
Graphic mirror symmetry (schematic diagram)
Qt通过QSttings类读取*.ini配置文件
随机推荐
665.非递减数列
CISP-PTE Zhenti Demonstration
pycharm专业版 配置pytest
猜数字游戏
报错:npm ERR code EPERM
Ranking of grades (Huazhong University of Science and Technology postgraduate examination questions) (DAY 87)
零基础C语言“函数”教程,有手就行
More fragrant open source projects than Ruoyi in 2022
cnpm installation steps
三子棋游戏实现(c语言)
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
C语言指针(指针数组、数组指针、函数指针、传参、回调函数等)超详细
cJSON开源项目详细解剖
条件变量解决生产者消费者问题
信号量解决生产者消费者问题
Summary of SQL classic interview questions in 2022 (with analysis)
配环境 / 初步测试
enumerate() 函数
St. Regis Takeaway Project: New dishes and dishes paged query
240.搜索二维矩阵II