home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
vc98
/
include
/
dprintf.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-25
|
831b
|
39 lines
//===============================================================
// MODULE: dprintf()
//
// HISTORY:
// Tom McConnell 01/18/93 Created.
// raypa 07/09/93 ifdef DEBUG.
//===============================================================
#include <string.h>
#include <stdio.h>
#include <windows.h>
#ifdef DEBUG
//===============================================================
// dprintf()
//
// Handles dumping info to OutputDebugString
//
// HISTORY:
//
// Tom McConnell 1/18/93 Created
//===============================================================
static void dprintf(char *format, ...)
{
va_list args;
char buffer[255];
va_start(args,format);
strcpy(buffer + vsprintf(buffer,format,args), "\r\n");
OutputDebugString(buffer);
}
#endif