25 lines
532 B
C
25 lines
532 B
C
|
// Name: Mohsin Ahmed
|
||
|
// Email: MohsinA@microsoft.com
|
||
|
// Date: Mon Nov 04 13:53:46 1996
|
||
|
// File: s:/tcpcmd/common2/debug.c
|
||
|
// Synopsis: Win95 Woes, don't have ntdll.dll on win95.
|
||
|
|
||
|
#include <windows.h>
|
||
|
#define MAX_DEBUG_OUTPUT 1024
|
||
|
|
||
|
void DbgPrint( char * format, ... )
|
||
|
{
|
||
|
va_list args;
|
||
|
char out[MAX_DEBUG_OUTPUT];
|
||
|
int cch=0;
|
||
|
|
||
|
// cch = wsprintf( out, MODULE_NAME ":" );
|
||
|
|
||
|
va_start( args, format );
|
||
|
wvsprintf( out + cch, format, args );
|
||
|
va_end( args );
|
||
|
|
||
|
OutputDebugString( out );
|
||
|
}
|
||
|
|