mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 18:33:06 +00:00
b0e9a709ba
-Erik
20 lines
343 B
C
20 lines
343 B
C
#include "internal.h"
|
|
#include <stdio.h>
|
|
|
|
const char sleep_usage[] = " NUMBER\n"
|
|
"Pause for NUMBER seconds.\n";
|
|
|
|
extern int
|
|
sleep_main(int argc, char * * argv)
|
|
{
|
|
if ( (argc < 2) || (**(argv+1) == '-') ) {
|
|
usage( sleep_usage );
|
|
}
|
|
|
|
if ( sleep(atoi(*(++argv))) != 0 ) {
|
|
perror( "sleep");
|
|
exit (FALSE);
|
|
} else
|
|
exit (TRUE);
|
|
}
|