gpt4 book ai didi

c - function free 的隐式声明在 c99 中无效

转载 作者:太空狗 更新时间:2023-10-29 16:28:13 24 4
gpt4 key购买 nike

在 xcode 5 中我收到这个警告:

"implicit declaration of function free is invalid in c99"

如果我不能使用 free() 函数,我应该如何释放我的 c 结构?

最佳答案

您应该包括 <stdlib.h> .

关于c - function free 的隐式声明在 c99 中无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19401658/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com