Sync usage with man page.
[netbsd-mini2440.git] / games / larn / nap.c
blob5a40a9d9feec36cce0d359971f60b02a83df1e49
1 /* $NetBSD$ */
3 /* nap.c Larn is copyrighted 1986 by Noah Morgan. */
4 #include <sys/cdefs.h>
5 #ifndef lint
6 __RCSID("$NetBSD$");
7 #endif /* not lint */
9 #include <unistd.h>
10 #include "header.h"
11 #include "extern.h"
14 * routine to take a nap for n milliseconds
16 void
17 nap(x)
18 int x;
20 if (x <= 0)
21 return; /* eliminate chance for infinite loop */
22 lflush();
23 usleep(x * 1000);