UniStrfmon places characters into the array pointed to by ucs as controlled by the string pointed to by format. No more than maxsize code elements are placed into the array. The character string format contains two types of objects:

Plain characters are copied to the output stream. Both plain characters and directives results in the fetching of zero or more converted and formatted arguments.

The results are unpredictable if there are insufficient arguments for the format. If the format is exhausted while arguments remain, the excess arguments are ignored. A directive consists of a % character, optional conversion specifications, and an ending character that determines the directive's behavior.

UniStrfmon converts numeric values to monetary strings, according to the specifications in the format parameter. This parameter also contains numeric values to be converted. Characters are placed into this ucs array, as controlled by the format parameter. The LC_MONETARY category governs the format of the conversion.

UniStrfmon can be called multiple times by including additional format structures, as specified by the format parameter.

The format parameter specifies a character string that can contain plain characters and conversion specifications. Plain characters are copied to the output stream. Conversion specifications result in the fetching of zero or more arguments, which are converted and formatted.

If there are insufficient arguments for the format parameter, the results are undefined. If arguments remain after the format parameter is exhausted, the excess arguments are ignored.

A conversion specification sequence consists of a % (percent) sign, optional flags, optional field width, optional left precision, optional right precision, and a required conversion character that determine the conversion to be performed.

One or more of the following flags can be specified to control the conversion:

  • f ^ +or( ! -

    FIELD WIDTH

    w

    LEFT PRECISION

  • n

    RIGHT PRECISION

  • p

    CONVERSION CHARACTERS

    i

    n %


    [Back: UniStrfmon - Parameters]
    [Next: UniStrfmon - Related Functions]