chVsprintf

#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

上一篇:C# 利用委托事件进行窗体间的传值(新手必看)


下一篇:在XAF(ASP.NET)中以ListEditor的形式调用百度地图API