Mail Archives: djgpp/1997/08/06/19:16:49
Date: | Thu, 7 Aug 1997 01:16:17 +0200 (MET DST)
|
From: | Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
|
To: | djgpp AT delorie DOT com
|
Subject: | Re: '...' handling (with djgpp, although likely ubiquitous)...
|
Message-ID: | <Pine.UW2.3.95.970807011550.7080A-100000@bryggen.bgnett.no>
|
MIME-Version: | 1.0
|
Erik Max Francis <max AT alcyone DOT com> 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.
- Raw text -