commit 0d9b8f25519f52cac50d0e1eb30ee78a2ed86cf7 parent 0f8f9dc3636f486a03d090629432273bcce4e646 Author: qorg11 <qorg@vxempire.xyz> Date: Sun, 2 Aug 2020 18:23:38 +0200 sleep Diffstat:
A | src/sleep.c | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/sleep.c b/src/sleep.c @@ -0,0 +1,15 @@ +#include <stdio.h> +#include <unistd.h> +#include <stdlib.h> +int +main(int argc, char *argv[]) +{ + if(argc == 1) + { + printf("missing opperand\n"); + } + + sleep(atoi(argv[1])); + + return 0; +}