strerror(errno)

来源:互联网 发布:js search汉字 编辑:程序博客网 时间:2024/05/22 16:05

it can be used like :

#include <string.h>

printf("opt header write failed: %s", strerror(errno));

very usful to catch the meaning of error.

原创粉丝点击