1 /* `sleep.c` - suspend execution for an interval
2 Copyright (c) 2022, Alan Potteiger
3 See `LICENSE` for copyright and license details */
5 #define _POSIX_C_SOURCE 200809L
12 static const char *usage
= {
16 /* this is the first utility cause I'm tired as hell */
19 main(int argc
, char *argv
[])
28 sec
= strtol(argv
[1], NULL
, 10);
29 if (sec
== 0 && errno
== EINVAL
) {
35 sleep((unsigned int) sec
);