Added binary and unicode file i/o support to msvcrt.
[reactos.git] / reactos / lib / crtdll / stdio / putchar.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 /*
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS system libraries
5 * FILE: lib/crtdll/conio/getch.c
6 * PURPOSE: Writes a character to stdout
7 * PROGRAMER: Boudewijn Dekker
8 * UPDATE HISTORY:
9 * 28/12/98: Created
10 */
11 #include <msvcrt/stdio.h>
12
13 #undef putc
14 #undef putchar
15
16 int putchar(int c)
17 {
18 int r = putc(c, stdout);
19 if (stdout->_flag & _IOLBF)
20 fflush(stdout);
21 return r;
22 }