version 1.26, 2009/10/27 23:59:50 |
version 1.27, 2013/04/16 19:24:55 |
|
|
/* print greeting */ |
/* print greeting */ |
if (gethostname(host, sizeof(host)) < 0) |
if (gethostname(host, sizeof(host)) < 0) |
(void)strlcpy(host, "???", sizeof host); |
(void)strlcpy(host, "???", sizeof host); |
now = time((time_t *)NULL); |
now = time(NULL); |
nows = ctime(&now); |
nows = ctime(&now); |
nows[16] = '\0'; |
nows[16] = '\0'; |
(void)printf("\r\n\007\007\007Message from %s@%s on %s at %s ...\r\n", |
(void)printf("\r\n\007\007\007Message from %s@%s on %s at %s ...\r\n", |