Date: Tue, 21 Jul 1998 11:46:58 +0300 (IDT) From: Eli Zaretskii To: Krian U cc: djgpp AT delorie DOT com Subject: Re: "vsscanf" - Is there an equivalent in DJGPP? In-Reply-To: <6ovkg5$jlg$1@news4.jaring.my> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 20 Jul 1998, Krian U wrote: > I have some code ported over from Borland C to DJGPP that uses "vsscanf", an > sscanf-type function that works with va_lists. Since vsscanf isn't > ANSI-standard, I'd like to ask what I could do to get the same result in > something that looks like this: > > int string_scanf (char *string, char *fmt, ...) How about this: #define string_scanf sscanf > // Following line doesn't compile under GCC > cnt = vsscanf (string, fmt, ap); You don't actually mean ``doesn't compile'', you mean ``doesn't link'', right? The compiler doesn't really care about functions which are or aren't in the library.