#include "precompiled.h" char *UTIL_VarArgs(char *format, ...) { va_list argptr; static char string[1024]; va_start(argptr, format); Q_vsnprintf(string, sizeof(string), format, argptr); va_end(argptr); return string; } // UTIL_LogPrintf - Prints a logged message to console. // Preceded by LOG: ( timestamp ) < message > void UTIL_LogPrintf(char *fmt, ...) { va_list argptr; static char string[1024]; va_start(argptr, fmt); Q_vsnprintf(string, sizeof(string), fmt, argptr); va_end(argptr); // Print to server console ALERT(at_logged, "%s", string); }