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:
parent
d35b3206dc
commit
bab5b2550f
1 changed files with 1 additions and 3 deletions
4
main.c
4
main.c
|
@ -1,11 +1,9 @@
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
while (1) {
|
while (1) {
|
||||||
sleep(20);
|
sleep(20);
|
||||||
printf("*");
|
write(1, "*", 1);
|
||||||
fflush(NULL);
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue