Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!agate!aurora!labrea!decwrl!decvax!dartvax!eleazar!cmi From: cmi@eleazar.Dartmouth.EDU (Theo Pozzy/R. Green) Newsgroups: comp.lang.c Subject: A problem with varargs Message-ID: <8292@eleazar.Dartmouth.EDU> Date: 29 Feb 88 15:23:44 GMT References: <1608@byzantium.UUCP> <1632@mhres.mh.nl> <51@vsi.UUCP> <7361@brl-smoke.ARPA> <1078@pasteur.Berkeley.Edu> Reply-To: cmi@eleazar.Dartmouth.EDU (Theo Pozzy/R. Green) Organization: Corporate Microsystems, Inc. Lines: 17 Keywords: arguments, varargs In response to the recent discussion about using the varargs mechanism, I'd like to know if anyone out there has successfully used varargs in your own functions that are nested a few levels. In other words, how do you pass the whole set of varargs down to another routine of your own? I know you can pass the argument list to, say, vsprintf(), but what if you have your own vsprintf() (or equivalent) routine? Can someone show me an example? Theo Pozzy, Corporate Microsystems, Inc. ...!decvax!dartvax!eleazar!cmi (UUCP) cmi@eleazar.dartmouth (CSNET) cmi@eleazar.dartmouth.EDU (ARPA) Box A-58, Hanover, NH, 03755 (USPS) CompuServe (76267,413) (603) 448-5193 (BellNet) -- Theo Pozzy, Corporate Microsystems, Inc. ...!decvax!dartvax!eleazar!cmi (UUCP) cmi@eleazar.dartmouth (CSNET) cmi@eleazar.dartmouth.EDU (ARPA) Box A-58, Hanover, NH, 03755 (USPS) CompuServe (76267,413) (603) 448-5193 (BellNet)