version 1.39, 2000/10/14 12:12:09 |
version 1.40, 2000/10/15 14:14:01 |
|
|
time_string = ctime(&last_login_time); |
time_string = ctime(&last_login_time); |
if (strchr(time_string, '\n')) |
if (strchr(time_string, '\n')) |
*strchr(time_string, '\n') = 0; |
*strchr(time_string, '\n') = 0; |
if (strcmp(buf, "") == 0) |
if (strcmp(hostname, "") == 0) |
printf("Last login: %s\r\n", time_string); |
printf("Last login: %s\r\n", time_string); |
else |
else |
printf("Last login: %s from %s\r\n", time_string, hostname); |
printf("Last login: %s from %s\r\n", time_string, hostname); |