Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
682 B

  1. //Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Name: Mohsin Ahmed
  3. // Email: [email protected]
  4. // Date: Mon Nov 04 13:53:46 1996
  5. // File: s:/tcpcmd/common2/debug.c
  6. // Synopsis: Win95 Woes, don't have ntdll.dll on win95.
  7. #include <windows.h>
  8. #include <stdio.h>
  9. #ifdef DBG
  10. #define MAX_DEBUG_OUTPUT 1024
  11. void DbgPrint( char * format, ... )
  12. {
  13. va_list args;
  14. char out[MAX_DEBUG_OUTPUT];
  15. int cch=0;
  16. // cch = wsprintf( out, MODULE_NAME ":" );
  17. va_start( args, format );
  18. _vsnprintf( out + cch,MAX_DEBUG_OUTPUT-1,format, args );
  19. va_end( args );
  20. OutputDebugStringA( out );
  21. }
  22. #endif