summaryrefslogtreecommitdiff
path: root/coreutils/sleep.c
blob: e48e14b2f2df801620f0b724517328452692339e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "internal.h"
#include <stdio.h>

const char	sleep_usage[] = "sleep seconds\n"
"\n"
"\tPause program execution for the given number of seconds.\n";

extern int
sleep_main(struct FileInfo * i, int argc, char * * argv)
{
	if ( sleep(atoi(argv[1])) != 0 )
		return -1;
	else
		return 0;
}