标签:start col img white span strcat spl bug event
1 void __cdecl OutputDebugStringF(const char* format, ...) 2 { 3 va_list vlArgs; 4 char* strBuffer = (char*)GlobalAlloc(GPTR, 4096); 5 va_start(vlArgs, format); 6 _vsnprintf(strBuffer, 4096 - 1, format, vlArgs); 7 va_end(vlArgs); 8 strcat(strBuffer, "\n"); 9 OutputDebugStringA(strBuffer); 10 GlobalFree(strBuffer); 11 return; 12 }
1 // cpp 不勾选 行内代码 2 void __cdecl OutputDebugStringF(const char* format, ...) 3 { 4 va_list vlArgs; 5 char* strBuffer = (char*)GlobalAlloc(GPTR, 4096); 6 va_start(vlArgs, format); 7 _vsnprintf(strBuffer, 4096 - 1, format, vlArgs); 8 va_end(vlArgs); 9 strcat(strBuffer, "\n"); 10 OutputDebugStringA(strBuffer); 11 GlobalFree(strBuffer); 12 return; 13 }
1 void __cdecl OutputDebugStringF(const char* format, ...) 2 { 3 va_list vlArgs; 4 char* strBuffer = (char*)GlobalAlloc(GPTR, 4096); 5 va_start(vlArgs, format); 6 _vsnprintf(strBuffer, 4096 - 1, format, vlArgs); 7 va_end(vlArgs); 8 strcat(strBuffer, "\n"); 9 OutputDebugStringA(strBuffer); 10 GlobalFree(strBuffer); 11 return; 12 }
标签:start col img white span strcat spl bug event
原文地址:https://www.cnblogs.com/simazhongda/p/12348418.html