xref: /dragonfly/games/larn/nap.c (revision c03f08f3)
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)
10 	{
11 	if (x<=0) return; /* eliminate chance for infinite loop */
12 	lflush();
13 	usleep(x*1000);
14 	}
15