• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • errno和strerror的使用

    發表于:2007-05-26來源:作者:點擊數: 標簽:

    erron 和 strerror的使用

    看APUE上學來的


    #include <stdio.h>
    #include <string.h>
    #include <errno.h>

    int main(void)
    {
     int  fd;
     extern int errno;

     if((fd = open("no/such/file",0)) < 0)
     {
      printf("errno=%d ",errno);
      char * mesg = strerror(errno);
      printf("Mesg:%s ",mesg);  
     }
      
     exit(0);
    }

    原文轉自:http://www.kjueaiud.com

    評論列表(網友評論僅供網友表達個人看法,并不表明本站同意其觀點或證實其描述)
    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>