can anyone point me in the direction of a complete list of format specifiers (%s, %d. %f, etc) in c/c++
im trying to find out why a particular string causes a function to crash when using va_start macro with _vsnprintf
basic code...
any input appreciated
If somethings hard to do, its not worth doing - Homer Simpson
im trying to find out why a particular string causes a function to crash when using va_start macro with _vsnprintf
basic code...
Code:
void CServerDlg::WriteConsoleString(LPCTSTR pMsg, ...)
{
TCHAR str[500];
va_list marker;
int nLen;
va_start(marker, pMsg);
_vsnprintf( str, sizeof( str ) - 1, pMsg, marker );
va_end(marker);
}
any input appreciated
If somethings hard to do, its not worth doing - Homer Simpson