This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/Borland/BCC55/Include/dprintf.h

41 lines
872 B
C

#pragma option push -b -a8 -pc -A- /*P_O_Push*/
//===============================================================
// 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
#pragma option pop /*P_O_Pop*/