So I am trying to get the time of login
struct utmp log[1];
while(read(Ofile, log, sizeof(log)) == sizeof(log))
{
printf("%-9s %-12s %-15s %-18s\n" , log->ut_user, log->ut_line,log->ut_time, log->ut_host);}
}
I get Segementation False after adding ut_time. Any solution?
How is this struct utmp declared ?