1 /* Program to produce output at regular intervals. */
6 struct tm
*localtime ();
17 period
= atoi (argv
[1]);
21 /* Make sure wakeup stops when Emacs goes away. */
24 printf ("Wake up!\n");
26 /* If using a period of 60, produce the output when the minute
31 tp
= localtime (&when
);
32 sleep (60 - tp
->tm_sec
);