I am unit testing a function which has arguments like;
extern int32_t
fabl_fmtstr_fprint (FILE *op UNUSED, const char *format, ...){}
I am not sure what the argument "..." is for. I am getting compile time error for it.
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
Could anybody explain me the reason? And I am using CppUTest(C++) for unittesting.
I have declared the funtion being FAKE as,
FAKE_VALUE_FUNC(int32_t, fabl_fmtstr_fprint, FILE* ,const char *, int);
In this case its asking for the missing "..." argument.