sleepsh/main.c

15 lines
241 B
C
Raw Permalink Normal View History

#define SLEEP_SECONDS 20
2024-10-14 15:43:16 +03:00
#include <unistd.h>
int main() {
while (1) {
sleep(SLEEP_SECONDS);
// fd 1 = stdout fd number
// "*" = symbol to print
// 1 = size of a string to print
write(1, "*", 1);
2024-10-14 15:43:16 +03:00
}
return 0;
}