当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
numpy中np.inf函数的用法讲解
Basic syntax of MySQL DDL and DML and DQL
Different usage scenarios of subqueries as retrieval tables and the question of whether to add aliases
C语言(入门篇一)
字符串(一) 哈希
The difference between asyncawait and promise
enumerate() 函数
操作系统面试整理
MySQL 灵魂 16 问,你能撑到第几问?
MySQL模糊查询性能优化
net start mysql MySQL service is starting. MySQL service failed to start.The service did not report any errors.
5.5线程池
三子棋游戏——C语言
St. Regis Takeaway Project: New dishes and dishes paged query
函数(c语言)
【线性神经网络】线性回归 / 基础优化方法
MySQL 用户授权
Solve phpstudy unable to start MySQL service
Qt在QTableWidget、View等表格中添加右击菜单
MySQL的存储过程

![[Other] DS5](/img/20/6863bb7b58d2e60b35469ba32e5830.png)







