HP3000-L Archives

February 2006, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ken Hirsch <[log in to unmask]>
Reply To:
Ken Hirsch <[log in to unmask]>
Date:
Mon, 6 Feb 2006 07:40:47 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
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 *

ATOM RSS1 RSS2