当前位置:网站首页>(pointer) write a function to compare the size of strings by yourself, which is similar to StrCmp.
(pointer) write a function to compare the size of strings by yourself, which is similar to StrCmp.
2022-07-04 04:20:00 【I'm not Xiao Haiwa~~~~】
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;
}
边栏推荐
- [Huawei cloud IOT] reading notes, "Internet of things: core technology and security of the Internet of things", Chapter 3 (I)
- Tcpclientdemo for TCP protocol interaction
- *. No main manifest attribute in jar
- Katalon framework tests web (XXI) to obtain element attribute assertions
- 深度优先搜索简要讲解(附带基础题)
- [book club issue 13] packaging format of video files
- Evolution of MySQL database architecture
- Unity移动端游戏性能优化简谱之 画面表现与GPU压力的权衡
- ctf-pikachu-CSRF
- Flink学习8:数据的一致性
猜你喜欢

Msgraphmailbag - search only driveitems of file types

Global exposure and roller shutter exposure of industrial cameras
![[paddleseg source code reading] paddleseg custom data class](/img/88/37c535b371486db545abc392a685af.png)
[paddleseg source code reading] paddleseg custom data class

还原窗口位置的微妙之处

北漂程序员,月薪20K,一年攒15W,正常吗?

Distributed system: what, why, how

图解网络:什么是热备份路由器协议HSRP?

96% of the collected traffic is prevented by bubble mart of cloud hosting

'2'&gt;' 10'==true? How does JS perform implicit type conversion?

Restore the subtlety of window position
随机推荐
postgresql 用户不能自己创建表格配置
Three years of graduation, half a year of distance | community essay solicitation
JS realizes the effect of text scrolling marquee
[paddleseg source code reading] paddleseg calculates Miou
[paddleseg source code reading] normalize operation of paddleseg transform
三菱M70宏变量读取三菱M80公共变量采集三菱CNC变量读取采集三菱CNC远程刀补三菱机床在线刀补三菱数控在线测量
'2'&gt;' 10'==true? How does JS perform implicit type conversion?
Support the first triggered go ticker
干货!基于GAN的稀有样本生成
RHCSA 07 - 用户与群组管理
Illustrated network: what is the hot backup router protocol HSRP?
mysql数据库的存储
【罗技】m720
Select sorting and bubble sorting template
Spa in SDP
There is a problem that the package cannot be parsed in the like project
线程常用的方法
SDP中的SPA
leetcode刷题:二叉树09(二叉树的最小深度)
Getting started with the go language is simple: go implements the Caesar password