| |||
| Home > The C and C++ Libraries > Tailoring locale and CTYPE using assembler macros > LC_NUMERIC data block |
The macros that define an LC_NUMERIC data
block are as follows:
Call LC_NUMERIC_begin with
a symbol name and a locale name. See Specifying the beginning for more information.
Call the LC_NUMERIC data macros
as follows:
Call LC_NUMERIC_point with
one argument: decimal_point from lconv structure.
Call LC_NUMERIC_thousands with
one argument: thousands_sep.
Call LC_NUMERIC_grouping with
one argument: grouping.
Call LC_NUMERIC_end, without
arguments, to finish the locale block definition. See Specifying the ending for more information.
Example 2.7 shows an LC_NUMERIC data
block.
Example 2.7. Defining the NUMERIC locale
LC_NUMERIC_begin c_numeric, C LC_NUMERIC_point . LC_NUMERIC_thousands LC_NUMERIC_grouping LC_NUMERIC_end