:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / crtdll / conio / cputs.c
1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS system libraries
4  * FILE:        lib/crtdll/conio/cputs.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 <crtdll/conio.h>
12 #include <crtdll/string.h>
13 #include <crtdll/stdio.h>
14 #include <crtdll/internal/file.h>
15
16 int _cputs(const char *_str)
17 {
18   int len = strlen(_str);
19   DWORD written = 0;
20   if (!WriteFile(filehnd(stdout->_file),_str,len,&written,NULL))
21     return -1;
22   return 0;
23 }