ReactOS  0.4.12-dev-375-g61fed54
crtsupp.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Boot Loader
3  * LICENSE: BSD - See COPYING.ARM in the top level directory
4  * FILE: boot/armllb/crtsupp.c
5  * PURPOSE: CRT Support Code
6  * PROGRAMMERS: ReactOS Portable Systems Group
7  */
8 
9 #include "precomp.h"
10 
11 int
12 putchar(int c)
13 {
14  /* Write to the screen */
16 
17  /* For DEBUGGING ONLY */
19  return 0;
20 }
21 
22 int
23 puts(const char* string)
24 {
25  while (*string) putchar(*string++);
26  return 0;
27 }
28 
29 int printf(const char *fmt, ...)
30 {
31  va_list args;
32  unsigned int i;
33  char printbuffer[1024];
34 
35  va_start(args, fmt);
36  i = vsprintf(printbuffer, fmt, args);
37  va_end(args);
38 
39  /* Print the string */
40  return puts(printbuffer);
41 }
42 
43 ULONG
44 DbgPrint(const char *fmt, ...)
45 {
46  va_list args;
47  unsigned int i, j;
48  char Buffer[1024];
49 
50  va_start(args, fmt);
51  i = vsprintf(Buffer, fmt, args);
52  va_end(args);
53 
54  for (j = 0; j < i; j++) LlbSerialPutChar(Buffer[j]);
55  return 0;
56 }
57 
58 /* EOF */
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble const GLfloat const GLdouble const GLfloat GLenum GLint GLint GLint GLint GLint GLint j
Definition: glfuncs.h:98
int printf(const char *fmt,...)
Definition: crtsupp.c:29
Definition: match.c:390
VOID NTAPI LlbSerialPutChar(IN CHAR c)
Definition: serial.c:13
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define va_end(ap)
Definition: acmsvcex.h:90
int putchar(int c)
Definition: crtsupp.c:12
char * va_list
Definition: acmsvcex.h:78
Definition: bufpool.h:45
VOID NTAPI LlbVideoPutChar(IN UCHAR c)
Definition: video.c:349
const GLubyte * c
Definition: glext.h:8905
int puts(const char *string)
Definition: crtsupp.c:23
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define va_start(ap, A)
Definition: acmsvcex.h:91
ULONG DbgPrint(const char *fmt,...)
Definition: crtsupp.c:44
unsigned int ULONG
Definition: retypes.h:1
#define args
Definition: format.c:66
Definition: dsound.c:943