llformat.cpp

Go to the documentation of this file.
00001 
00033 #include "linden_common.h"
00034 
00035 #include "llformat.h"
00036 
00037 #include <cstdarg>
00038 
00039 std::string llformat(const char *fmt, ...)
00040 {
00041         char tstr[1024];        /* Flawfinder: ignore */
00042         va_list va;
00043         va_start(va, fmt);
00044 #if LL_WINDOWS
00045         _vsnprintf(tstr, 1024, fmt, va);
00046 #else
00047         vsnprintf(tstr, 1024, fmt, va); /* Flawfinder: ignore */
00048 #endif
00049         va_end(va);
00050         return std::string(tstr);
00051 }

Generated on Thu Jul 1 06:08:38 2010 for Second Life Viewer by  doxygen 1.4.7