Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!uvaarpa!murdoch!news From: cyj9h@hudson.acc.Virginia.EDU (che' m.c.) Newsgroups: comp.lang.c Subject: ANSI function prototypes and varargs Keywords: ANSI, function, vararg Message-ID: <1990Oct19.033607.19712@murdoch.acc.Virginia.EDU> Date: 19 Oct 90 03:36:07 GMT Sender: news@murdoch.acc.Virginia.EDU Distribution: na Organization: University of Virginia Lines: 24 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"