C错误中的参数

时间:2015-03-02 22:12:43

标签: c cpputest

我正在测试一个函数,它具有像<; p>这样的参数

extern int32_t
fabl_fmtstr_fprint (FILE *op UNUSED, const char *format, ...){}

我不确定这个论点是什么&#34; ...&#34;是为了。我收到编译时错误。

error: declaration of C function 'int32_t fabl_fmtstr_fprint(FILE*, const char*, int)' 
conflicts with
previous declaration 'int32_t fabl_fmtstr_fprint(FILE*, const char*, ...)' here

有人可以解释一下原因吗?我正在使用CppUTest(C ++)进行单元测试。

我已宣布功能为FAKE,

FAKE_VALUE_FUNC(int32_t, fabl_fmtstr_fprint, FILE* ,const char *, int);

在这种情况下,它要求失踪&#34; ...&#34;参数。

0 个答案:

没有答案