From: earnie_boyd@yahoo.com (Earnie Boyd)
Subject: Re: scanf "%n" format specifier is not supported
23 Jun 1998 11:04:13 -0700
Message-ID: <19980623121150.23991.rocketmail.cygnus.gnu-win32@send1e.yahoomail.com>
Reply-To: earnie_boyd@yahoo.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
To: Alexander Chernov <cher@ispras.ru>, gnu-win32@cygnus.com

---Alexander Chernov <cher@ispras.ru> wrote:
>
> Hello,
> 
> This looks like a missing feature: "%n" format specifier in sscanf
> is not supported. For example, the following piece of code
> left variable n value as 0 instead of 2. According to my textbooks
> ANSI C specifies %n specifier.
> 
> #include <stdio.h>
> #include <string.h>
> 
>   int
> main()
> {
>   int v = 0, n = 0, r = 0;
> 
>   r = sscanf("32", "%d %n", &v, &n);

modify this to be:
    r = sscanf("32", "%d%n", &v, &n);


==
-        \\||//
---o0O0--Earnie--0O0o----
--earnie_boyd@yahoo.com--
------ooo0O--O0ooo-------



_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
