strerror函数运行时报错 Segmentation fault (core dumped)

虽然编译时没报错,但还是要加上以下头文件:

#include <string.h>

加上后正常运行。

posted @ 2020-07-31 18:17  epiphanyy  阅读(10)  评论(0)    收藏  举报  来源