ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

debug.c
Go to the documentation of this file.
00001 /* Service debugging (simply logs to a file) */
00002 
00003 #include "audiosrv.h"
00004 
00005 void logmsg(char* string, ...)
00006 {
00007     va_list args;
00008 
00009     FILE* debug_file = fopen("c:\\audiosrv-debug.txt", "a");
00010 
00011     if (debug_file)
00012     {
00013         va_start(args, string);
00014         vfprintf(debug_file, string, args);
00015         va_end(args);
00016         fclose(debug_file);
00017     }
00018     else
00019     {
00020         char buf[256];
00021         va_start(args, string);
00022         vsprintf(buf, string, args);
00023         OutputDebugStringA(buf);
00024         va_end(args);
00025     }
00026 }

Generated on Sun May 27 2012 04:17:45 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.