Definition in file string_common.h.
#include "nel/misc/types_nl.h"
#include <cstdio>
#include <cstdarg>
Go to the source code of this file.
Namespaces | |
namespace | NLMISC |
Defines | |
#define | NLMISC_CONVERT_VARGS(_dest, _format, _size) |
|
Value: char _cstring[_size]; \ va_list _args; \ va_start (_args, _format); \ int _res = vsnprintf (_cstring, _size-1, _format, _args); \ if (_res == -1 || _res == _size-1) \ { \ _cstring[_size-1] = '\0'; \ } \ va_end (_args); \ _dest = _cstring Example:
Definition at line 70 of file string_common.h. Referenced by NLMISC::CLog::display(), NLMISC::CLog::displayNL(), NLMISC::CLog::displayRaw(), NLMISC::CLog::displayRawNL(), NLMISC::Exception::Exception(), NLMISC::CLog::forceDisplayRaw(), NLMISC::nlError(), NLMISC::nlFatalError(), NL3D::CTextContextUser::printfAt(), NL3D::CTextContext::printfAt(), NL3D::CTextContextUser::render3D(), NLNET::sendAdminEmail(), NL3D::CTextContextUser::textPush(), NL3D::CTextContext::textPush(), NLMISC::toString(), NLMISC::xmlGenericErrorFuncRead(), and NLMISC::xmlGenericErrorFuncWrite(). |