X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fclearerr.c;h=2bfe7c508448eb92830605de1f78031825ef16d2;hb=9f196c54742b59da53f81d9e2e7401864de3138b;hp=4c51d714f54aefb4c019a6b8c216bd6820d19634;hpb=e5fedc94f017c068b93f0d168a9973a3e8401c42;p=pdclib.old diff --git a/functions/stdio/clearerr.c b/functions/stdio/clearerr.c index 4c51d71..2bfe7c5 100644 --- a/functions/stdio/clearerr.c +++ b/functions/stdio/clearerr.c @@ -23,7 +23,7 @@ void clearerr( struct _PDCLIB_file_t * stream ) int main( void ) { #ifndef REGTEST - FILE file = { 0, { 0 }, NULL, 0, 0, 0, NULL }; + FILE file = { 0, { 0, 0 }, NULL, 0, 0, 0, _IONBF, NULL, NULL }; FILE * fh = &file; TESTCASE( ! ferror( fh ) ); TESTCASE( ! feof( fh ) );