#include <stdio.h>
#include <stdarg.h>
static CString xGetUpdateParam(
const Json::Value& jo,
int count,
)
{
string strValue;
CString strParam(" ");
va_list arg_list;
va_start(arg_list,count);
for(
int i=0; i<count; i++)
{
const char* pszKey = va_arg(arg_list,
const char*);
strValue = jo[pszKey].asString();
if (!strValue.empty())
{
strParam.AppendFormat("%s='%s',",pszKey,strValue.c_str());
}
//int nRet = vfprintf(stdout,str,arg_list);
}
va_end(arg_list);
strParam = strParam.Left(strParam.GetLength()-1);
return strParam;
}
int myPrint(
char *str,)
{
va_list arg_list;
va_start(arg_list,str);
int nRet = vfprintf(stdout,str,arg_list);
va_end(arg_list);
return nRet;
}
int main()
{
int nRet = myPrint("Line:%d\n",__LINE__);
return 0;
}