+ sline = ttyslot(); /* 'utmp' slot no. of sender */
+ (void) fstat(f, &statb);
+ utmp = (struct utmp *)malloc(statb.st_size);
+ c = read(f, (char *)utmp, statb.st_size);
+ (void) close(f);
+ c /= sizeof(struct utmp);
+ if (sline)
+ strncpy(who, utmp[sline].ut_name, sizeof(utmp[sline].ut_name));
+ sprintf(mesg,
+ "\n\007\007Broadcast Message from %s@%s (%.*s) at %d:%02d ...\r\n\n"
+ , who
+ , hostname
+ , sizeof(utmp[sline].ut_line)
+ , utmp[sline].ut_line
+ , localclock -> tm_hour
+ , localclock -> tm_min
+ );
+ msize = strlen(mesg);
+ if (argc >= 2) {