调用vsprint函数时编译报错,已经包含了stdarg和stdio头文件啊
不晓得怎搞?
错误信息:
symbol f_vsprintf not defined
/*函数原型*/
int print(const char *format, ...)
{
char buff[50];
int chars;
va_list ap;
va_start(ap, format);
//chars = vsprintf(buff, format, ap);
chars = vsprintf(buff, format, ap);
va_end(ap);
if (chars > 0)
{
SendBuf((u8 *)buff,(u8)chars);
return 1;
}
return 0;
}
|