Miller, Keven wrote:
> john pitman wrote:
>
>> Setlocale("LC_ALL","") to force set up
>>
>> And to use an apostrophe in the format, as in "%'8.2f" to tell printf
>> to use
>> the separator and decimal point from locale(), but all I get instead
>> of a
>> number (12345.67) is '8.2f .
>
>
>
> The ' flag is not documented in the MPE C library manual.
> All the documentation I can find describing the ' flag seems to
> appear in unix-related texts or the current C standard, which is
> not C89.
Keven Miller is right. I tried the code on HP-UX and it works with the
' flag, but it doesn't work on MPE.
The C99 standard does not contain it. The current standard is available
here:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf
(linked from http://www.open-std.org/jtc1/sc22/wg14/www/standards)
The Single Unix Specification has the ' flag marked as an X/Open extension.
http://www.opengroup.org/onlinepubs/009695399/http://www.opengroup.org/onlinepubs/009695399/functions/fprintf.html
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *