















用到一个库,,它有一个接口函数如下:
/**
* @brief interface print format data
* @param[in] fmt is the format data
* @note none
*/
void ov2640_interface_debug_print(const char *const fmt, ...)
{
}
这个函数的函数原型与 printf 完全一致,,所以我想像下面这样直接把它的参数传递给 printf ,,可是编译器报错,,请问应该怎么改??
void ov2640_interface_debug_print(const char *const fmt, ...)
{
printf(fmt, ...);
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。