ReactOS  0.4.15-dev-492-ga1108f6
putch.c File Reference
#include <precomp.h>
Include dependency graph for putch.c:

Go to the source code of this file.

Functions

int _putch (int c)
 

Function Documentation

◆ _putch()

int _putch ( int  c)

Definition at line 16 of file putch.c.

17 {
18  DWORD NumberOfCharsWritten;
19 
20  if (WriteFile(GetStdHandle(STD_OUTPUT_HANDLE),&c,1,&NumberOfCharsWritten,NULL)) {
21  return -1;
22  }
23  return NumberOfCharsWritten;
24 }
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: rw.c:24
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:200
smooth NULL
Definition: ftsmooth.c:416
const GLubyte * c
Definition: glext.h:8905
unsigned long DWORD
Definition: ntddk_ex.h:95
#define STD_OUTPUT_HANDLE
Definition: winbase.h:265