#if LINUX_SYSTEM
int chVsprintf(LPSTR buffer, int nCount, LPCSTR format, va_list argptr)
{
return vsnprintf(buffer, nCount, format, argptr);
}
int chVsprintf(LPWSTR buffer, int nCount, LPCWSTR format, va_list argptr)
{
return vswprintf((LPWSTR)buffer, nCount, (LPWSTR)format, argptr);
}
#else
int chVsprintf(LPSTR buffer, int nCount, LPCSTR format, va_list argptr)
{
int nWrite = vsprintf(buffer, format, argptr);
chASSERT(nWrite < nCount);
return nWrite;
}
int chVsprintf(LPWSTR buffer, int nCount, LPCWSTR format, va_list argptr)
{
int nWrite = vswprintf(buffer, format, argptr);
chASSERT(nWrite < nCount);
return nWrite;
}
#endif