当前位置:网站首页>(pointeur) Écrivez - vous une fonction qui compare la taille de la chaîne et fonctionne comme strcmp.
(pointeur) Écrivez - vous une fonction qui compare la taille de la chaîne et fonctionne comme strcmp.
2022-07-04 04:19:00 【Je ne suis pas xiaohai.】
int strcmps(const char *s1,const char *s2)
{
while(*s1!='\0'&& *s2!='\0')
{
if(*s1>*s2)
return 1;
else if(*s1<*s2)
return -1;
s1++;
s2++;
}
if(*s1>*s2)
return 1;
else if(*s1<*s2)
return -1;
return 0;
}
边栏推荐
- [csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability
- Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure
- Myslq delete followed by limit
- Introduction to asynchronous task capability of function calculation - task trigger de duplication
- 毕业总结
- Support the first triggered go ticker
- 深度优先搜索简要讲解(附带基础题)
- RHCSA 06 - suid, sgid, sticky bit(待补充)
- 如何有效远程办公之我见 | 社区征文
- Pandora IOT development board learning (HAL Library) - Experiment 6 independent watchdog experiment (learning notes)
猜你喜欢
函数计算异步任务能力介绍 - 任务触发去重
The maximum expiration time of client secret in azure ad application registration is modified to 2 years
Go 语言入门很简单:Go 实现凯撒密码
[csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability
mysql数据库的存储
[Logitech] m720
干货!基于GAN的稀有样本生成
量子力学习题
'2'&gt;' 10'==true? How does JS perform implicit type conversion?
Exercises in quantum mechanics
随机推荐
三年进账35.31亿,这个江西老表要IPO了
Unity 绘制弹球和台球的运动轨迹
vim正确加区间注释
02 ls 命令的具体实现
毕业设计:设计秒杀电商系统
如何远程办公更有效率 | 社区征文
用于TCP协议交互的TCPClientDemo
Idea configuration 360zip open by default -- external tools
三菱M70宏变量读取三菱M80公共变量采集三菱CNC变量读取采集三菱CNC远程刀补三菱机床在线刀补三菱数控在线测量
如何有效远程办公之我见 | 社区征文
01 QEMU starts the compiled image vfs: unable to mount root FS on unknown block (0,0)
新型数据中心,助力加快构建以数据为关键要素的数字经济
01 qemu 启动编译好的镜像 VFS: Unable to mount root fs on unknown-block(0,0)
华为云鲲鹏工程师培训(广西大学)
Two commonly used graphics can easily realize data display
Katalon中控件的参数化
PPt 教程,如何在 PowerPoint 中将演示文稿另存为 PDF 文件?
Database SQL statement summary, continuous update
pytest多进程/多线程执行测试用例
【CSRF-01】跨站请求伪造漏洞基础原理及攻防