ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

cputs.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:   LGPL - See COPYING in the top level directory
00003  * PROJECT:     ReactOS system libraries
00004  * FILE:        lib/msvcrt/conio/cputs.c
00005  * PURPOSE:     Writes a character to stdout
00006  * PROGRAMER:   Aleksey Bragin
00007  */
00008 
00009 #include <precomp.h>
00010 
00011 /*
00012  * @implemented
00013  */
00014 int _cputs(const char *_str)
00015 {
00016   DWORD count;
00017   int retval = EOF;
00018   HANDLE console_out = GetStdHandle(STD_OUTPUT_HANDLE);
00019 
00020   //LOCK_CONSOLE;
00021   if (WriteConsoleA(console_out, _str, strlen(_str), &count, NULL)
00022       && count == 1)
00023     retval = 0;
00024   //UNLOCK_CONSOLE;
00025   return retval;
00026 }

Generated on Sun May 27 2012 04:36:27 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.