Date: Thu, 7 Aug 1997 01:16:17 +0200 (MET DST) From: Gisle Vanem To: djgpp AT delorie DOT com Subject: Re: '...' handling (with djgpp, although likely ubiquitous)... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk Erik Max Francis said: > Here is a function which does a modified printf: > > int printf2(const char *format, ...) > { > va_list args; > int result; > > va_start(args, format); > result = vprintf(format, args); > va_end(args); > > return result; > } Or simply: int printf2(const char *format, ...) { return vprintf (format,(&format)+1); } Incidently the va_end() macro does nothing on any platform I've seen. What's the story behind it? Gisle V.