1999-01-16 02:11:45 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
|
|
|
* FILE: lib/crtdll/conio/cputs.c
|
|
|
|
* PURPOSE: Writes a character to stdout
|
|
|
|
* PROGRAMER: Boudewijn Dekker
|
|
|
|
* UPDATE HISTORY:
|
|
|
|
* 28/12/98: Created
|
|
|
|
*/
|
|
|
|
#include <windows.h>
|
1999-04-02 21:44:11 +00:00
|
|
|
#include <crtdll/conio.h>
|
|
|
|
#include <crtdll/string.h>
|
1999-04-03 10:42:18 +00:00
|
|
|
#include <crtdll/stdio.h>
|
|
|
|
#include <crtdll/internal/file.h>
|
1999-01-16 02:11:45 +00:00
|
|
|
|
1999-04-02 21:44:11 +00:00
|
|
|
int _cputs(const char *_str)
|
1999-01-16 02:11:45 +00:00
|
|
|
{
|
2001-07-27 10:15:48 +00:00
|
|
|
int len = strlen(_str);
|
|
|
|
DWORD written = 0;
|
|
|
|
if (!WriteFile(filehnd(stdout->_file),_str,len,&written,NULL))
|
|
|
|
return -1;
|
|
|
|
return 0;
|
1999-03-19 05:55:55 +00:00
|
|
|
}
|