23,217
社区成员




#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