errno字符打印

/* Function: obtain the errno string
*   char *strerror(int errno)
*/

#include <stdio.h>
#include <string.h>     //for strerror()
//#include <errno.h>
int main()
{
    int errID= 0;
    for(errID= 0; errID<=256; errID++)
    {
        printf("errno:%2d\t%s\n",errID,strerror(terrIDmp));
    }
    return 0;
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章