///////////////////////////////////////////////////////////////////////////////
//  LFormat.cpp

#include <stdarg.h>
#include <stdio.h>
#include <string.h>

#ifdef WIN32
#include <windows.h>
#endif

#include "LFormat.h"

std::string __cdecl LFormat::Make(const char* pszFormat, ...)
{
	char szBuf[16384];
	szBuf[0] = '\0';

	va_list	pArgPtr;

	va_start(pArgPtr, pszFormat);

#ifdef WIN32
	vsprintf_s(szBuf, 16384, pszFormat, pArgPtr);
#else
	vsprintf(szBuf, pszFormat, pArgPtr);
#endif

	va_end(pArgPtr);

	return std::string(szBuf);
	
}

