Syntax | include <locale.h> struct lconv *localeconv(void); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The The The members for non-monetary numeric values (
The radix character used to format non-monetary quantities.
The character used to separate groups of digits before the decimal-point character in formatted non-monetary quantities.
A string whose elements taken as one-byte integer values indicate the size of each group of digits in non-monetary quantities (see below). The members for monetary numeric values (
The international currency symbol used in the current locale. The operand consists of a string of four characters: the first three characters contain the alphabetic international currency symbol, as defined in ISO 4217:1897; the fourth character, which immediately precedes the null byte, is the separator between the international currency symbol and the monetary quantity. In the "
The local currency symbol applicable to the current locale.
The radix character used to format monetary quantities. This member is restricted to one byte in the ISO-C standard. If a multi-byte operand is specified, the result is undefined.
The separator for groups of digits before the decimal point in formatted monetary quantities. This member is restricted to one byte in the ISO-C standard. If a multi-byte operand is specified, the result is undefined.
A string whose elements taken as one-byte integer values indicate the size of each group of digits in formatted monetary quantities. The operand consists of a sequence of integers, delimited by semi-colons. Each number specifies the number of positions in each group; the first number indicates the size of the group that immediately precedes the decimal separator, and the following numbers define the preceding groups. If the last number is not equal to -1, the preceding group (if one exists) is repeatedly used for the remaining positions. If the last number is -1, no further grouping is performed (see below).
The string used to indicate a non-negative, formatted monetary quantity.
The string used to indicate a negative formatted monetary quantity.
The number of decimal places to be displayed in internationally formatted monetary quantities, where
The number of decimal places to be displayed in a formatted monetary quantity, where
Set to 1 if
Set to 0 if no space separates the
If the value of this member is 1, the
Set to 0 if no space separates the
This member is set to a value that indicates the position of the
Set to a value indicating the positioning of the The elements of | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| No further grouping is to be performed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| The previous element is to be repeatedly used for the remainder of the digits. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| other | The integer value is the number of digits that comprise the current group. The next element is examined to determine the size of the next group of digits before the current group. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The values of | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| Parentheses surround the quantity and | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| The sign precedes the quantity and | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| The sign follows the quantity and | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| The sign immediately precedes the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| The sign immediately follows the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The implementation will behave as if no function calls | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Return val. | Pointer to the structure in which the values were entered upon successful completion. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes | The structure pointed to by the return value must not be modified by the program, but may be overwritten by a subsequent call to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example | The following table illustrates the rules which may be used by three countries to format monetary quantities:
For these three countries, the respective values for the monetary members of the structure returned by
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also |
|