fix(bf): set stdout unbuffered + formating

This commit is contained in:
overflowerror 2024-05-05 22:21:11 +02:00
parent 5346b91cc2
commit 3021ff6f4a

View file

@ -7,7 +7,7 @@
char band[BAND_LENGTH];
long long position = 0; // signed
void init_band() {
void init_band(void) {
memset(band, 0, BAND_LENGTH);
}
@ -153,6 +153,8 @@ int main(int argc, char** argv) {
input = fopen(argv[1], "r");
}
setvbuf(stdout, NULL, _IONBF, 0);
init_band();
char* program = read_to_string(input);