当前位置:网站首页>StrError & PERROR use yyds dry inventory
StrError & PERROR use yyds dry inventory
2022-07-06 03:08:00 【Mango_ Mango】
summary :
strlen - Library function for finding string length
strcpy- String copy function
strcat - character string ( Connect ) Append function
strncpy() - String copy function - Can control the number of characters copied
strncat() - String append function
strncmp() - String comparison function
strstr - String lookup function
strtok - String cutting
memcpy()- Memory copy function
memmove- Memory copy function ( Can handle overlapping memory copies )
memcmp: Memory compare function
memset - Memory setting function
strerror- Can return C The error message corresponding to the error code built in the language
perror - Print custom content +strerror
Error message reporting function
strerror- Can return C The error message corresponding to the error code built in the language
Return the error information corresponding to the error code
Parameter error code , Translate into error message , The first character address of the error message string corresponding to the error code is returned
C When a language library function call fails , Will store the error code in errno variable
application :
Since we don't have this file : So print the results
No such file or directory
perror - Print custom content +strerror
string: Custom characters
Print the results :
If perror There's something in , Print content first , Then automatically add a colon after it : Then print the error message
shortcoming : Print when you don't want to print
边栏推荐
- Introduction to robotframework (II) app startup of appui automation
- SD卡报错“error -110 whilst initialising SD card
- 【若依(ruoyi)】ztree 自定义图标(iconSkin 属性)
- RobotFramework入门(二)appUI自动化之app启动
- . Net 6 and Net core learning notes: Important issues of net core
- Performance analysis of user login TPS low and CPU full
- 2.11 simulation summary
- MySQL advanced notes
- MySQL advanced notes
- 华为、H3C、思科命令对比,思维导图形式从基础、交换、路由三大方向介绍【转自微信公众号网络技术联盟站】
猜你喜欢
Buuctf question brushing notes - [geek challenge 2019] easysql 1
[ruoyi] enable Mini navigation bar
XSS challenges bypass the protection strategy for XSS injection
How to do function test well
适合程序员学习的国外网站推荐
不赚钱的科大讯飞,投资价值该怎么看?
华为、H3C、思科命令对比,思维导图形式从基础、交换、路由三大方向介绍【转自微信公众号网络技术联盟站】
微服务间通信
[unity3d] GUI control
ERA5再分析资料下载攻略
随机推荐
Redis cache breakdown, cache penetration, cache avalanche
Jenkins basic knowledge ----- detailed explanation of 03pipeline code
Inherit day01
Daily question brushing plan-2-13 fingertip life
深入探究指针及指针类型
Universal crud interface
Apt installation ZABBIX
How to do function test well
Codeforces 5 questions par jour (1700 chacune) - jour 6
[ruoyi] ztree custom icon (iconskin attribute)
PMP practice once a day | don't get lost in the exam -7.5
Eight super classic pointer interview questions (3000 words in detail)
. Net 6 and Net core learning notes: Important issues of net core
Introduction to robotframework (I) brief introduction and use
Handwriting database client
华为、H3C、思科命令对比,思维导图形式从基础、交换、路由三大方向介绍【转自微信公众号网络技术联盟站】
手写数据库客户端
Redis SDS principle
PMP每日一练 | 考试不迷路-7.5
BUUCTF刷题笔记——[极客大挑战 2019]EasySQL 1