23,121
社区成员
发帖
与我相关
我的任务
分享
#define UTMPNULL (struct utmp *)NULL
struct utmp *utmpNext()
{
struct utmp *next;
if(curRec == numRec && utmpReload() == 0)
return UTMPNULL;
next = (struct utmp *)utmpBuf;
curRec++;
return next;
}
while((buf = utmpNext()) != UTMPNULL) //warning: assignment makes pointer from integer without a cast