simplify atexit and fflush-on-exit handling
This commit is contained in:
parent
8e8ddeff7e
commit
f753049a50
3 changed files with 12 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue