Commas in 'c' printf

Kurt Wall kwall
Mon May 17 11:55:43 PDT 2004


Consuming 1.1K bytes, Michael Hipp blathered:
> 
> Ok, I should have looked at the man page for printf:
> 
> ----------
> The five flag characters above are defined in the C standard. The SUSv2 
> specifies one further flag character.
> 
> '
> For decimal conversion (i, d, u, f, F, g, G) the output is to be grouped 
> with thousands' grouping characters if the locale information indicates 
> any. Note that many versions of gcc cannot parse this option and will 
> issue a warning. SUSv2 does not include %'F.  instead of relying on my book:
> ----------
> 
> What is SUSv2? My book covers C99 which I thought was nearly the last 
> word on the subject.

Single Unix Specification, version 2, rather like POSIX on steroids.

http://www.opengroup.org/onlinepubs/007908799/

Kurt
-- 
Binary, adj.:
	Possessing the ability to have friends of both sexes.


More information about the Linux-users mailing list