当前位置:网站首页>(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;
}
边栏推荐
- 指针数组和数组指针
- STM32 external DHT11 display temperature and humidity
- 华为云鲲鹏工程师培训(广西大学)
- [paddleseg source code reading] paddleseg custom data class
- Katalon中控件的参数化
- Smart subway | cloud computing injects wisdom into urban subway transportation
- VIM add interval annotation correctly
- DP83848+网线热拔插
- Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
- STM32外接DHT11显示温湿度
猜你喜欢

Tcpclientdemo for TCP protocol interaction

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

如何远程办公更有效率 | 社区征文

如何有效远程办公之我见 | 社区征文

User defined path and file name of Baidu editor in laravel admin

用于TCP协议交互的TCPClientDemo

leetcode刷题:二叉树04(二叉树的层序遍历)

2021 RSC | Drug–target affinity prediction using graph neural network and contact maps

Idea modify body color

Rhcsa-- day one
随机推荐
Lnk2038 detected a mismatch of "runtimelibrary": the value "md_dynamicrelease" does not match the value "mdd_dynamicdebug" (in main.obj)
JDBC advanced
leetcode刷题:二叉树07(二叉树的最大深度)
Exercises in quantum mechanics
ctf-pikachu-CSRF
毕业总结
北漂程序员,月薪20K,一年攒15W,正常吗?
Flink learning 7: application structure
The maximum expiration time of client secret in azure ad application registration is modified to 2 years
用于TCP协议交互的TCPClientDemo
pytest多进程/多线程执行测试用例
How to telecommute more efficiently | community essay solicitation
LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDebug”(main.obj 中)
I Build a simple microservice project
leetcode刷题:二叉树05(翻转二叉树)
[paddleseg source code reading] paddleseg calculates Miou
How was my life in 2021
Katalon uses script to query list size
hbuildx中夜神模拟器的配置以及热更新
【微服务|openfeign】@FeignClient详解