From ab10a8d036ad1ea56b0f7d2d664749699a9668fd Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Mon, 14 Oct 2024 17:00:38 +0400 Subject: [PATCH] docs: add comments, move sleep() arg to #define --- main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index d711a6a..4021bf9 100644 --- a/main.c +++ b/main.c @@ -1,8 +1,13 @@ +#define SLEEP_SECONDS 20 + #include int main() { while (1) { - sleep(20); + sleep(SLEEP_SECONDS); + // fd 1 = stdout fd number + // "*" = symbol to print + // 1 = size of a string to print write(1, "*", 1); } return 0;