src/09-LockCop/LockCop.cpp
// Adds a string to the "Details" edit control

Adds a string to the "Details" edit control
Adds a string to the " Details " edit control
void AddText(PCTSTR pszFormat, ...) {
   va_list argList;
   va_start(argList, pszFormat);
   TCHAR sz[20 * 1024];
   Edit_GetText(DETAILS_CTRL, sz, _countof(sz));
   _vstprintf_s(
      _tcschr(sz, TEXT('\0')), _countof(sz) - _tcslen(sz), 
      pszFormat, argList);
   Edit_SetText(DETAILS_CTRL, sz);
   va_end(argList);
}
void AddText ( PCTSTR pszFormat , ... ) { va_list argList ; va_start ( argList , pszFormat ) ; TCHAR sz [ 20 * 1024 ] ; Edit_GetText ( DETAILS_CTRL , sz , _countof ( sz ) ) ; _vstprintf_s ( _tcschr ( sz , TEXT ( ' \0 ' ) ) , _countof ( sz ) - _tcslen ( sz ) , pszFormat , argList ) ; Edit_SetText ( DETAILS_CTRL , sz ) ; va_end ( argList ) ; }
Adds a string to the "Details" edit control
Adds a string to the " Details " edit control