Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: sprintf badness Keywords: sprintf, sscanf Message-ID: <14913@smoke.brl.mil> Date: 21 Jan 91 21:01:12 GMT References: <473@bally.Bally.COM> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 6 In article <473@bally.Bally.COM> siva@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.