Manual Reference Pages - STRFMON (3)
- convert monetary value to string
strfmon char * restrict s size_t maxsize const char * restrict format ...
strfmon_l char * restrict s size_t maxsize locale_t loc const char * restrict format ...
function places characters into the array pointed to by
as controlled by the string pointed to by
No more than
bytes are placed into the array.
function does the same as
but takes an explicit locale rather than using the current locale.
The format string is composed of zero or more directives:
ordinary characters (not
which are copied unchanged to the output stream; and conversion
specifications, each of which results in fetching zero or more subsequent
Each conversion specification is introduced by the
the following appear in sequence:
- Zero or more of the following flags:
| = f
character followed by another character
which is used as the numeric fill character.
Do not use grouping characters, regardless of the current locale default.
Represent positive values by prefixing them with a positive sign,
and negative values by prefixing them with a negative sign.
This is the default.
Enclose negative values in parentheses.
Do not include a currency symbol in the output.
Left justify the result.
Only valid when a field width is specified.
- An optional minimum field width as a decimal number.
By default, there is no minimum width.
sign followed by a decimal number specifying the maximum
expected number of digits after the radix character.
character followed by a decimal number specifying the number
the number of digits after the radix character.
- One of the following conversion specifiers:
argument is formatted as an international monetary amount.
argument is formatted as a national monetary amount.
character is written.
If the total number of resulting bytes including the terminating
byte is not more than
returns the number of bytes placed into the array pointed to by
not including the terminating
Otherwise, -1 is returned,
the contents of the array are indeterminate,
is set to indicate the error.
function returns the same values as
function will fail if:
Conversion stopped due to lack of space in the buffer.
The format string is invalid.
Not enough memory for temporary buffers.
function conforms to
function was implemented by
.An Alexey Zelkin Aq phantom@FreeBSD.org .
This manual page was written by
.An Jeroen Ruigrok van der Werven Aq asmodai@FreeBSD.org
based on the standards text.
function does not correctly handle multibyte characters in the
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.