j*i
1 楼
#include
#include
#include
#include
#include
int main()
{
struct utmpx *U;
while ((U = getutxent())!=NULL) {
printf ( "%s", U -> ut_pid);
}
return 0;
}
I wrote these lines but it said that "Segmentation Fault (core dumped)"
Could you give me some suggestion. TX
#include
#include
#include
#include
int main()
{
struct utmpx *U;
while ((U = getutxent())!=NULL) {
printf ( "%s", U -> ut_pid);
}
return 0;
}
I wrote these lines but it said that "Segmentation Fault (core dumped)"
Could you give me some suggestion. TX