B
billposer
The ' (single quote/apostrophe - ASCII 0x27) flag in *printf (which
causes delimitation of integer groups as per the locale) is not in the
C standard, and as applied to floats is not even in SUSv2. On the other
hand, it is very useful. I'm wondering how people check for
availability of a version of printf that supports it. I don't find a
macro for this in the autoconf macro library, and I'm hard put to write
my own because all of the systems to which I have easy access use
versions of gcc that support it so I don't know what the failure mode
is on systems that do not. How do other people handle this? Is there an
autoconf macro I don't know about? Or can someone who uses a compiler
that doesn't support it tell me whether it generates a syntax error at
compile time or a runtime error? Thanks.
causes delimitation of integer groups as per the locale) is not in the
C standard, and as applied to floats is not even in SUSv2. On the other
hand, it is very useful. I'm wondering how people check for
availability of a version of printf that supports it. I don't find a
macro for this in the autoconf macro library, and I'm hard put to write
my own because all of the systems to which I have easy access use
versions of gcc that support it so I don't know what the failure mode
is on systems that do not. How do other people handle this? Is there an
autoconf macro I don't know about? Or can someone who uses a compiler
that doesn't support it tell me whether it generates a syntax error at
compile time or a runtime error? Thanks.