docs: add comments, move sleep() arg to #define

This commit is contained in:
DarkCat09 2024-10-14 17:00:38 +04:00
parent bab5b2550f
commit ab10a8d036
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

7
main.c
View file

@ -1,8 +1,13 @@
#define SLEEP_SECONDS 20
#include <unistd.h>
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;