当前位置:网站首页>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
边栏推荐
- Analyze menu analysis
- Introduction to robotframework (I) brief introduction and use
- Add one to non negative integers in the array
- Mysql database operation
- Redis cache breakdown, cache penetration, cache avalanche
- Problems encountered in 2022 work IV
- Installation and use tutorial of cobaltstrike-4.4-k8 modified version
- 【 kubernets series】 a Literature Study on the Safe exposure Applications of kubernets Service
- 【若依(ruoyi)】ztree 自定义图标(iconSkin 属性)
- [ruoyi] set theme style
猜你喜欢
不赚钱的科大讯飞,投资价值该怎么看?
Communication between microservices
Reverse repackaging of wechat applet
主数据管理理论与实践
How to accurately identify master data?
2345 file shredding, powerful file deletion tool, unbound pure extract version
Introduction to robotframework (I) brief introduction and use
Who is the winner of PTA
[Yu Yue education] basic reference materials of digital electronic technology of Xi'an University of Technology
电机控制反Park变换和反Clarke变换公式推导
随机推荐
淘宝焦点图布局实战
Self made CA certificate and SSL certificate using OpenSSL
Universal crud interface
【paddle】加载模型权重后预测报错AttributeError: ‘Model‘ object has no attribute ‘_place‘
MySQL learning notes-10-tablespace recycling
Apt installation ZABBIX
Solution: attributeerror: 'STR' object has no attribute 'decode‘
codeforces每日5題(均1700)-第六天
Mysql database operation
JS regular filtering and adding image prefixes in rich text
. Net 6 and Net core learning notes: Important issues of net core
Rust language -- iterators and closures
Solve 9 with C language × 9 Sudoku (personal test available) (thinking analysis)
Redis cache breakdown, cache penetration, cache avalanche
银行核心业务系统性能测试方法
Analyze menu analysis
OCR文字识别方法综述
【Kubernetes 系列】一文學會Kubernetes Service安全的暴露應用
Microservice registration and discovery
How to choose PLC and MCU?