sleepsh/main.c

14 lines
241 B
C

#define SLEEP_SECONDS 20
#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);
}
return 0;
}