www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/21/04:48:17

Date: Tue, 21 Jul 1998 11:46:58 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Krian U <krian AT umich DOT edu>
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: <Pine.SUN.3.91.980721114432.6992W-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019