clark@ttidca.TTI.COM (Ralph Clark) (03/21/88)
/* vanwinkle.c - compile with cc -o vanwinkle vanwinkle.c
*
* For the benefit of those abroad, Rip VanWinkle was an early American
* who fell asleep for twenty years.
*
* The author of this example is a current American who stayed awake for many
* hours trying to use Fred Fish's dbug library, which uses sleep(maybe_0);
*/
#include <stdio.h>
main()
{
printf("Rip is going to sleep now.\n\n");
printf("While Rip rests, he dreams that Andy will choose either\n");
printf("sleep() or alarm() and post an official patch.\n\n");
printf("See you in twenty years.\nZzzzzzzzzzzzzzzzzzzzzzzzzzzzz\n");
fflush(stdout);
sleep(0);
printf("Rip woke up!!! You must have changed sleep() or alarm()!\n");
fflush(stdout);
exit(0);
}