repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git]
/
games
/
larn
/
nap.c
blob
5a40a9d9feec36cce0d359971f60b02a83df1e49
1
/* $NetBSD$ */
2
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 */
8
9
#include <unistd.h>
10
#include
"header.h"
11
#include
"extern.h"
12
13
/*
14
* routine to take a nap for n milliseconds
15
*/
16
void
17
nap
(
x
)
18
int
x
;
19
{
20
if
(
x
<=
0
)
21
return
;
/* eliminate chance for infinite loop */
22
lflush
();
23
usleep
(
x
*
1000
);
24
}