delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/10/16:21:54

Date: Fri, 10 Jun 1994 21:24:41 +0200 (CED)
From: David Svensson <david AT df DOT lth DOT se>
Subject: using scanf to read long double?
To: DJGPP Mailing list <djgpp AT sun DOT soe DOT clarkson DOT edu>

I have recently come across what I believe to be a bug in the scanf code. 
The length specifier 'L' doesn't seem to be recognized. This is quite 
unfortunate as I need more precision than I can get with the format 
specifier "%lf" which only gives me a double.

The compiler, which usually checks the parameters to scanf does not 
object to the use of "%Lf" which I think it should since the library 
doesn't support it. 

Any suggestion is most welcome.

David


- Raw text -


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