[comp.lang.c] ANSI function prototypes and varargs

cyj9h@hudson.acc.Virginia.EDU (che' m.c.) (10/19/90)

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"