Re: Many error msgs for all user-documents in lout 3.38 (MS Vista + Cygwin)

Jeff Kingston <[email protected]>
Newsgroups gmane.comp.type-setting.lout
Message-ID <[email protected]>
Could you explain what the issue is?  What is wrong, or ambiguous,
about %f in a scanf format?  It seems totally normal and unambiguous.

Jeff

On Mon, Jan 26, 2009 at 09:17:01PM +0800, KHMan wrote:
> I'm not really sure if newlib's sscanf is really at fault, because 
> its behaviour sounds wrong if we use "man scanf", but sounds right 
> if we use the ISO C draft standard n1256. So it seems all very 
> ambiguous...
> 
> -  if( sscanf((char *) str, "%f", &num) != 1 )
> +  if( sscanf((char *) str, "%31[0-9.]", &conv) != 1)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.