NetBSD/games/larn/nap.c
christos a8fba37dbd Tons of changes; re-indent, use termios, fix warnings, add prototypes...
Games is almost clean; only hack is left...
1997-10-18 20:03:05 +00:00

25 lines
482 B
C

/* $NetBSD: nap.c,v 1.5 1997/10/18 20:03:36 christos Exp $ */
/* nap.c Larn is copyrighted 1986 by Noah Morgan. */
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: nap.c,v 1.5 1997/10/18 20:03:36 christos Exp $");
#endif /* not lint */
#include <unistd.h>
#include "header.h"
#include "extern.h"
/*
* routine to take a nap for n milliseconds
*/
void
nap(x)
int x;
{
if (x <= 0)
return; /* eliminate chance for infinite loop */
lflush();
usleep(x * 1000);
}