在mac上写c语言程序,无法使用malloc函数 报错出现 fatal error: ‘malloc.h’ file not found 解决方法 导入 stdlib.h 在malloc.h前加上sys/ 即 #include <sys/malloc.h> 便可使用malloc函数