mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00

* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
24 lines
499 B
C
24 lines
499 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS system libraries
|
|
* FILE: lib/msvcrt/conio/putch.c
|
|
* PURPOSE: Writes a character to stdout
|
|
* PROGRAMER: Ariadne
|
|
* UPDATE HISTORY:
|
|
* 28/12/98: Created
|
|
*/
|
|
|
|
#include <precomp.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
int _putch(int c)
|
|
{
|
|
DWORD NumberOfCharsWritten;
|
|
|
|
if (WriteFile(GetStdHandle(STD_OUTPUT_HANDLE),&c,1,&NumberOfCharsWritten,NULL)) {
|
|
return -1;
|
|
}
|
|
return NumberOfCharsWritten;
|
|
}
|