- * leave - reminds you when you have to leave.
- * leave prompts for input and goes away if you hit return.
- * it nags you like a mother hen.
+ * leave [hhmm]
+ *
+ * Reminds you when you have to leave.
+ * Leave prompts for input and goes away if you hit return.
+ * It nags you like a mother hen.
long when, tod, now, diff, hours, minutes;
int *nv;
int atoi();
long when, tod, now, diff, hours, minutes;
int *nv;
int atoi();
char *msg1, *msg2, *msg3, *msg4;
register int i;
int slp1, slp2, slp3, slp4;
char *msg1, *msg2, *msg3, *msg4;
register int i;
int slp1, slp2, slp3, slp4;
daytime += gseconds;
whenleave = ctime(&daytime);
printf("Alarm set for %s\n",whenleave);
daytime += gseconds;
whenleave = ctime(&daytime);
printf("Alarm set for %s\n",whenleave);
static struct utmp ubuf;
int ufd;
ufd = open("/etc/utmp",0);
seek(ufd, ttyn(0)*sizeof(ubuf), 0);
read(ufd, &ubuf, sizeof(ubuf));
static struct utmp ubuf;
int ufd;
ufd = open("/etc/utmp",0);
seek(ufd, ttyn(0)*sizeof(ubuf), 0);
read(ufd, &ubuf, sizeof(ubuf));