mirror of
https://github.com/fluencelabs/musl
synced 2025-06-27 05:32:06 +00:00
simplify atexit and fflush-on-exit handling
This commit is contained in:
@ -18,4 +18,7 @@ int __towrite(FILE *f)
|
||||
}
|
||||
|
||||
/* Link flush-on-exit code iff any stdio write functions are linked. */
|
||||
int (*const __fflush_on_exit)(FILE *) = fflush;
|
||||
void __fflush_on_exit()
|
||||
{
|
||||
fflush(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user