www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/31/01:31:27

Message-Id: <33E02244.591F@mail.coos.or.us>
Date: Wed, 30 Jul 1997 22:27:32 -0700
From: Jason Dagit <thedagit AT mail DOT coos DOT or DOT us>
Reply-To: thedagit AT mail DOT coos DOT or DOT us
Mime-Version: 1.0
To: Razvan <rcoca AT pcnet DOT pcnet DOT ro>
Cc: djgpp AT delorie DOT com
Subject: Re: sscanf
References: <12 AT rcoca DOT pcnet DOT ro>

Razvan wrote:
> 
> Is it posible that sscanf would scan for a string, for an integer
> but not for a float or double ? (Is this a known bug in libc?)

I am just guessing but maybe you aren't using it right.  As far as I
know, the syntax is: sscanf("%d", &variable); 
Of course a lof of that changes depening on what you are looking for. 
Like the %d will find an int, but to find like an "double float"(or is
it float double :) it would be like %lf  I can't really help much
because I have never used sscanf before.  I have used scanf (with one s)
tho.

Jason

- Raw text -


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