函数perror、strerror
生活随笔
收集整理的這篇文章主要介紹了
函数perror、strerror
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
perror函數(shù)
函數(shù)原型:?
#include<stdio.h> void perror(const char *msg);測試代碼:
#include<unistd.h> #include<errno.h> #include<stdio.h>int main() {int ret;ret = close(10);if(ret == -1) {perror("close error");}return 0; }?
總結(jié)
以上是生活随笔為你收集整理的函数perror、strerror的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 成都欢乐谷的蹦极多少钱
- 下一篇: 天命奇御二游戏闪退怎么办