Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / lib / msvcrt / 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 <msvcrti.h>
12
13
14 #undef putc
15 #undef putchar
16
17 int putchar(int c)
18 {
19 int r = putc(c, stdout);
20 if (stdout->_flag & _IOLBF)
21 fflush(stdout);
22 return r;
23 }
24
25 wint_t putwchar(wint_t c)
26 {
27 wint_t r = putwc(c, stdout);
28 if (stdout->_flag & _IOLBF)
29 fflush(stdout);
30 return r;
31 }