sprintf badness

Doug Gwyn gwyn at smoke.brl.mil
Tue Jan 22 08:01:12 AEST 1991


In article <473 at bally.Bally.COM> siva at bally.Bally.COM (Siva Chelliah) writes:
>     I am running into problems when I mix floats and integers in sprintf.

No, sprintf() is doing what you intended.  However, you made a mistake
in your use of sscanf(); a %f format specifier must have a corresponding
pointer-to-flaot argument, but you provided a pointer-to-double.



More information about the Comp.lang.c mailing list