ANSI function prototypes and varargs
che' m.c.
cyj9h at hudson.acc.Virginia.EDU
Fri Oct 19 13:36:07 AEST 1990
Yow!
I'm trying to figure out what the correct syntax is for a function prototype
of the function I wrote below.
void GLOMERcreate_menu (struct win_text *mtptr, char *firstarg, ...)
The problem is that not all of the arguments passed to GLOMERcreate_menu
are of the same type. Is this code "illegal" according to K&R? And yes, it
does compile and works the way I think it should, except that the compiler
I'm using (MSC5.1) makes GLOMERcreate_menu return an int. But that's
because I never declared a function prototype in the first place because
I don't know how to. :-)
Should i even worry about it?
-thanks
-charles
"we look for things to make us go"
More information about the Comp.lang.c
mailing list