I'm trying to use #include <stdarg.h> in order to design a function that can be called with either a different number or type of arguments.
wutil.h:wutil.c:Code:#ifndef _WUTIL_H #define _WUTIL_H #include <windows.h> #include <stdarg.h> void alert(String s, ... ); #endifWhen I try to compile it I get the following error:Code:#include "wutil.h" void alert(String s, ... ) { }
What am I doing wrong?Code:D:\C\setup01\wutil.c In file included from wutil.c D:\C\setup01\wutil.h parse error before "s"



LinkBack URL
About LinkBacks


