|
From: Gerald S. <gsh...@ca...> - 2002-03-13 01:36:53
|
I want to comma separate an integer (ie 6,345,222 instead of 6345222), and
according to the libc manual, GNU supports an extension whereby I can say
printf("%'d", integer_variable), but for output I get 'd , i.e. the flag is
not recognized, and it treats 'd as a literal string. I tried escaping the
' "%\'d", to no avail. (fwiw, I get the same in cygwin's gcc).
Is it just me, or is this a known difference from gcc?
gws
|