首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >C程序错误报告?

C程序错误报告?

提问于 2018-03-28 00:31:12
回答 2关注 0查看 157

在寻找一种方法来提示C错误信息

struct queue *q = malloc(sizeof(*q));
if (NULL == q) {
    /* malloc failed. now what ? */
    return NULL; /* maybe ? */
}

这个例子返回NULL

void *get_data()
{
    /* stuff */

    /* Error detected. NULL is a valid return, now what ? */

    /* stuff */
}

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档