reactos/base/services/audiosrv/debug.c
KJK::Hyperion c0fa485960 The real, definitive, Visual C++ support branch. Accept no substitutes
svn path=/branches/the-real-msvc/; revision=36960
2008-10-25 17:56:00 +00:00

20 lines
318 B
C

/* Service debugging (simply logs to a file) */
#include <stdio.h>
#include <stdarg.h>
void logmsg(char* string, ...)
{
va_list args;
FILE* debug_file = fopen("c:\\audiosrv-debug.txt", "a");
va_start(args, string);
vfprintf(debug_file, string, args);
va_end(args);
fclose(debug_file);
}