mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-05-31 08:31:41 +05:30
clock-malfunction-imitation.c: optimize the use of STDOUT functions
This commit is contained in:
@@ -146,12 +146,12 @@ void time_flow_test(time_t (*time_function)(time_t*)) {
|
|||||||
printf(" -> Abnormal time flow detected!");
|
printf(" -> Abnormal time flow detected!");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
if (++i >= EXIT_IN) {
|
if (++i >= EXIT_IN) {
|
||||||
printf("\nAborting\n");
|
puts("\nAborting");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printf("\n");
|
putchar('\n');
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
// Update the previous time
|
// Update the previous time
|
||||||
@@ -162,7 +162,7 @@ void time_flow_test(time_t (*time_function)(time_t*)) {
|
|||||||
first_time_passed = true;
|
first_time_passed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\n");
|
putchar('\n');
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user