Changeset bac82eeb in mainline for uspace/lib/libc/generic/io/io.c


Ignore:
Timestamp:
2009-06-08T19:39:50Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.