Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygencrtsupp.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS Boot Loader 00003 * LICENSE: BSD - See COPYING.ARM in the top level directory 00004 * FILE: boot/armllb/crtsupp.c 00005 * PURPOSE: CRT Support Code 00006 * PROGRAMMERS: ReactOS Portable Systems Group 00007 */ 00008 00009 #include "precomp.h" 00010 00011 int 00012 putchar(int c) 00013 { 00014 /* Write to the screen */ 00015 LlbVideoPutChar(c); 00016 00017 /* For DEBUGGING ONLY */ 00018 LlbSerialPutChar(c); 00019 return 0; 00020 } 00021 00022 int 00023 puts(const char* string) 00024 { 00025 while (*string) putchar(*string++); 00026 return 0; 00027 } 00028 00029 int printf(const char *fmt, ...) 00030 { 00031 va_list args; 00032 unsigned int i; 00033 char printbuffer[1024]; 00034 00035 va_start(args, fmt); 00036 i = vsprintf(printbuffer, fmt, args); 00037 va_end(args); 00038 00039 /* Print the string */ 00040 return puts(printbuffer); 00041 } 00042 00043 ULONG 00044 DbgPrint(const char *fmt, ...) 00045 { 00046 va_list args; 00047 unsigned int i, j; 00048 char Buffer[1024]; 00049 00050 va_start(args, fmt); 00051 i = vsprintf(Buffer, fmt, args); 00052 va_end(args); 00053 00054 for (j = 0; j < i; j++) LlbSerialPutChar(Buffer[j]); 00055 return 0; 00056 } 00057 00058 /* EOF */ Generated on Sun May 27 2012 04:18:59 for ReactOS by
1.7.6.1
|