update for HEAD-2003021201
[reactos.git] / 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/msvcrt/stdio/putchar.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 #undef putwc
16 #undef putwchar
17
18 int putchar(int c)
19 {
20   int r = putc(c, stdout);
21   if (stdout->_flag & _IOLBF)
22      fflush(stdout);
23   return r;
24 }
25
26 wint_t putwchar(wint_t c)
27 {
28   wint_t r = putwc(c, stdout);
29   if (stdout->_flag & _IOLBF)
30      fflush(stdout);
31   return r;
32 }