c6c84134f00d6ce2e8621d5c501e19b3912d5228
[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 /*
17 * @implemented
18 */
19 int putchar(int c)
20 {
21 int r = putc(c, stdout);
22 if (stdout->_flag & _IOLBF)
23 fflush(stdout);
24 return r;
25 }