update for HEAD-2003021201
[reactos.git] / lib / msvcrt / conio / putch.c
1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS system libraries
4  * FILE:        lib/msvcrt/conio/putch.c
5  * PURPOSE:     Writes a character to stdout
6  * PROGRAMER:   Boudewijn Dekker
7  * UPDATE HISTORY:
8  *              28/12/98: Created
9  */
10 #include <windows.h>
11 #include <msvcrt/conio.h>
12
13 int _putch(int c)
14 {
15   DWORD NumberOfCharsWritten;
16
17   if (WriteFile(GetStdHandle(STD_OUTPUT_HANDLE),&c,1,&NumberOfCharsWritten,NULL)) {
18     return -1;
19   }
20   return NumberOfCharsWritten;
21 }