Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset bac82eeb in mainline


Ignore:
Timestamp:
2009-06-08T19:39:50Z (13 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
b8e57e8c
Parents:
cc27c8c5
Message:

getchar() and fgetc() are traditionally supposed to flush stdout and stderr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/io/io.c

    rcc27c8c5 rbac82eeb  
    348348{
    349349        char c;
    350        
     350
     351        /* This could be made faster by only flushing when needed. */
     352        if (stdout) fflush(stdout);
     353        if (stderr) fflush(stderr);
     354
    351355        if (fread(&c, sizeof(char), 1, stream) < sizeof(char))
    352356                return EOF;
Note: See TracChangeset for help on using the changeset viewer.