Path: utzoo!mnetor!uunet!husc6!ut-sally!utah-cs!utah-gr!uplherc!sp7040!wsccs!terry From: terry@wsccs.UUCP (terry) Newsgroups: comp.lang.c Subject: Re: A problem with varargs Message-ID: <306@wsccs.UUCP> Date: 12 Mar 88 09:17:16 GMT References: <1608@byzantium.UUCP> <1632@mhres.mh.nl> <51@vsi.UUCP> <8292@eleazar.Dartmouth.EDU> Lines: 32 Keywords: arguments, varargs Summary: That would be fraternizing... In article <8292@eleazar.Dartmouth.EDU>, cmi@eleazar.Dartmouth.EDU (Theo Pozzy/R. Green) writes: > 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. Yes. > 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? Can't give you an example; that would be fraternizing with the competition... but I can tell you where to look: printf.c in the UNIX source at the college you go to, or have a freind look it up for you. Can't give you ours; it's a part of TERM :-). PS: Found the crypt-breakers workbench yet? It isn't (apparently) in our local archives, so I haven't been able to send you a copy. PPS: You are getting 2 signatures... check your .signature file :-(. | Terry Lambert UUCP: ...!decvax!utah-cs!century!terry | | @ Century Software or : ...utah-cs!uplherc!sp7040!obie!wsccs!terry | | SLC, Utah | | These opinions are not my companies, but if you find them | | useful, send a $20.00 donation to Brisbane Australia... | | 'There are monkey boys in the facility. Do not be alarmed; you are secure' |