当前位置:网站首页>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
边栏推荐
- Installation and use tutorial of cobaltstrike-4.4-k8 modified version
- Buuctf question brushing notes - [geek challenge 2019] easysql 1
- C语言sizeof和strlen的区别
- Performance test method of bank core business system
- CSP numeric sort
- Linear regression and logistic regression
- JS regular filtering and adding image prefixes in rich text
- 多态day02
- Polymorphic day02
- 3857墨卡托坐标系转换为4326 (WGS84)经纬度坐标
猜你喜欢
微服务注册与发现
XSS challenges bypass the protection strategy for XSS injection
主数据管理理论与实践
Eight super classic pointer interview questions (3000 words in detail)
银行核心业务系统性能测试方法
4. File modification
Performance test method of bank core business system
What is the investment value of iFLYTEK, which does not make money?
深入探究指针及指针类型
Maturity of master data management (MDM)
随机推荐
Classic interview question [gem pirate]
Self made CA certificate and SSL certificate using OpenSSL
淘宝焦点图布局实战
1003 emergency (25 points), "DIJ deformation"
【若依(ruoyi)】设置主题样式
Analyze menu analysis
微服务间通信
How to do function test well
解决:AttributeError: ‘str‘ object has no attribute ‘decode‘
[pointer training - eight questions]
【Kubernetes 系列】一文學會Kubernetes Service安全的暴露應用
Fault analysis | analysis of an example of MySQL running out of host memory
I sorted out a classic interview question for my job hopping friends
Add one to non negative integers in the array
RobotFramework入门(三)WebUI自动化之百度搜索
Taobao focus map layout practice
原型图设计
2022工作中遇到的问题四
RobotFramework入门(一)简要介绍及使用
技术分享 | undo 太大了怎么办