Mail Archives: djgpp/1997/07/31/01:31:27
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 -