阅读背景:

我应该在Linux中释放getpwuid()返回的指针吗?

来源:互联网 

After I call getpwuid(uid), I have a reference to a pointer. Should I free that when I don't use it anymore? Reading the man pages, it says that it makes reference to some static area, that may be overwritten by subsequent calls to the same functions, so I'm sure sure if I should touch that memory area.After I call getpwuid(uid), I have a reference




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: