Mail Archives: djgpp/1998/07/21/04:48:17
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.
- Raw text -