C语言比较好的风格梳理

errno

    int err;
    tb = malloc(sizeof(struct xtracer_table));
    if (!tb) {
        err = errno;
        fprintf(stderr, "%s:%d, errno:%d, %s\n",
                __func__, __LINE__, err, strerror(err));
        return NULL;
    }
posted @ 2018-05-02 10:42  苏小北1024  阅读(196)  评论(0编辑  收藏  举报