d6a91a609d45ca37739739355e4e44ee415dac58
[reactos.git] / reactos / lib / crt / 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
11 #include "precomp.h"
12 #include <conio.h>
13
14 /*
15 * @implemented
16 */
17 int _putch(int c)
18 {
19 DWORD NumberOfCharsWritten;
20
21 if (WriteFile(GetStdHandle(STD_OUTPUT_HANDLE),&c,1,&NumberOfCharsWritten,NULL)) {
22 return -1;
23 }
24 return NumberOfCharsWritten;
25 }