Add <sys/_null.h> for the definition of NULL:
[dragonfly.git] / games / larn / nap.c
blobc86b6f3a1cf66db14e5b31de810c2bbcb55f4b07
1 /* nap.c Larn is copyrighted 1986 by Noah Morgan. */
2 /* $FreeBSD: src/games/larn/nap.c,v 1.4 1999/11/16 02:57:23 billf Exp $ */
3 /* $DragonFly: src/games/larn/nap.c,v 1.4 2006/08/26 17:05:05 pavalos Exp $ */
4 #include "header.h"
5 /*
6 * routine to take a nap for n milliseconds
7 */
8 void
9 nap(int x)
11 if (x<=0) return; /* eliminate chance for infinite loop */
12 lflush();
13 usleep(x*1000);