关于erron错误的类型以及程序表示

xiaoxiao2021-02-28  43

#include "error.h" void myError(char *str) { char *msg = myStrError(errno); printf ("%s: %s\n", str, msg); } char* myStrError(int num) { switch (errno) { case ERROR: return "输入参数错误"; case MALLOC_ERROR: return "malloc空间分配失败"; } }
转载请注明原文地址: https://www.6miu.com/read-70604.html

最新回复(0)