]>
code.delx.au - gnu-emacs/blob - lib-src/wakeup.c
1 /* Program to produce output at regular intervals. */
8 struct tm
*localtime ();
19 period
= atoi (argv
[1]);
23 /* Make sure wakeup stops when Emacs goes away. */
26 printf ("Wake up!\n");
28 /* If using a period of 60, produce the output when the minute
33 tp
= localtime (&when
);
34 sleep (60 - tp
->tm_sec
);