fix: less libs

replaced stdio's printf() + fflush() with with unistd's single write()
sadly it did not reduce size of a binary
This commit is contained in:
DarkCat09 2024-10-14 16:56:22 +04:00
parent d35b3206dc
commit bab5b2550f
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

4
main.c
View file

@ -1,11 +1,9 @@
#include <stdio.h>
#include <unistd.h>
int main() {
while (1) {
sleep(20);
printf("*");
fflush(NULL);
write(1, "*", 1);
}
return 0;
}