Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!accuvax.nwu.edu!delta.eecs.nwu.edu!kaufman From: kaufman@delta.eecs.nwu.edu (Michael L. Kaufman) Newsgroups: comp.os.msdos.programmer Subject: Re: General 'C' Preprocessor Question Keywords: Variable number of arguments Message-ID: <16889@accuvax.nwu.edu> Date: 27 Feb 91 01:47:25 GMT References: <1991Feb26.082837.5618@grebyn.com> Sender: news@accuvax.nwu.edu Organization: EECS Department, Northwestern University Lines: 15 In <1991Feb26.082837.5618@grebyn.com> jmbj@grebyn.com (Jim Bittman) writes: > #define printf(a) sprintf(mychbuf,a) How about #define printf( sprintf(mychbuf This will not work for most cases, but it will work for you example. Michael -- Michael Kaufman | I've seen things you people wouldn't believe. Attack ships on kaufman | fire off the shoulder of Orion. I watched C-beams glitter in @eecs.nwu.edu | the dark near the Tannhauser gate. All those moments will be | lost in time - like tears in rain. Time to die. Roy Batty