]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/mandoc/test-nanosleep.c
Remove spurious newline
[FreeBSD/FreeBSD.git] / contrib / mandoc / test-nanosleep.c
1 #include <stdio.h>
2 #include <time.h>
3
4 int
5 main(void)
6 {
7         struct timespec  timeout;
8
9         timeout.tv_sec = 0;
10         timeout.tv_nsec = 100000000;    /* 0.1 seconds */
11         
12         if (nanosleep(&timeout, NULL)) {
13                 perror("nanosleep");
14                 return 1;
15         }
16         return 0;
17 }