Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

log.c File Reference

#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Functions

void Log_Out (const char *string)
void Log_Puts (const char *string)
void Log_Printf (const char *String,...)


Function Documentation

void Log_Out const char *  string  ) 
 

Definition at line 27 of file log.c.

Referenced by Log_Printf(), and Log_Puts().

00028 {
00029 #ifdef _DEBUG
00030         OutputDebugString(string);
00031 #endif
00032         printf(string);
00033 }

void Log_Printf const char *  String,
... 
 

Definition at line 42 of file log.c.

References Log_Out().

00043 {
00044         va_list                 ArgPtr;
00045     char                        TempStr[1024];
00046 
00047         va_start(ArgPtr, String);
00048     vsprintf(TempStr, String, ArgPtr);
00049         va_end(ArgPtr);
00050 
00051         Log_Out(TempStr);
00052 }

void Log_Puts const char *  string  ) 
 

Definition at line 36 of file log.c.

References Log_Out().

00037 {
00038         Log_Out(string);
00039         Log_Out("\n");
00040 }


Generated on Tue Sep 30 12:37:45 2003 for GTestAndEngine by doxygen 1.3.2