| 1 |
.\" Copyright (c) 2020-2022 by Alejandro Colomar <[email protected]> |
| 2 |
.\" and Copyright (c) 2020 by Michael Kerrisk <[email protected]> |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 5 |
.\" |
| 6 |
.\" |
| 7 |
.TH lconv 3type 2024-05-02 "Linux man-pages 6.9.1" |
| 8 |
.SH NAME |
| 9 |
lconv \- numeric formatting information |
| 10 |
.SH LIBRARY |
| 11 |
Standard C library |
| 12 |
.RI ( libc ) |
| 13 |
.SH SYNOPSIS |
| 14 |
.EX |
| 15 |
.B #include <locale.h> |
| 16 |
.P |
| 17 |
.BR "struct lconv {" " /* Values in the \[dq]C\[dq] locale: */" |
| 18 |
.BR " char *decimal_point;" " /* \[dq].\[dq] */" |
| 19 |
.BR " char *thousands_sep;" " /* \[dq]\[dq] */" |
| 20 |
.BR " char *grouping;" " /* \[dq]\[dq] */" |
| 21 |
.BR " char *mon_decimal_point;" " /* \[dq]\[dq] */" |
| 22 |
.BR " char *mon_thousands_sep;" " /* \[dq]\[dq] */" |
| 23 |
.BR " char *mon_grouping;" " /* \[dq]\[dq] */" |
| 24 |
.BR " char *positive_sign;" " /* \[dq]\[dq] */" |
| 25 |
.BR " char *negative_sign;" " /* \[dq]\[dq] */" |
| 26 |
.BR " char *currency_symbol;" " /* \[dq]\[dq] */" |
| 27 |
.BR " char frac_digits;" " /* CHAR_MAX */" |
| 28 |
.BR " char p_cs_precedes;" " /* CHAR_MAX */" |
| 29 |
.BR " char n_cs_precedes;" " /* CHAR_MAX */" |
| 30 |
.BR " char p_sep_by_space;" " /* CHAR_MAX */" |
| 31 |
.BR " char n_sep_by_space;" " /* CHAR_MAX */" |
| 32 |
.BR " char p_sign_posn;" " /* CHAR_MAX */" |
| 33 |
.BR " char n_sign_posn;" " /* CHAR_MAX */" |
| 34 |
.BR " char *int_curr_symbol;" " /* \[dq]\[dq] */" |
| 35 |
.BR " char int_frac_digits;" " /* CHAR_MAX */" |
| 36 |
.BR " char int_p_cs_precedes;" " /* CHAR_MAX */" |
| 37 |
.BR " char int_n_cs_precedes;" " /* CHAR_MAX */" |
| 38 |
.BR " char int_p_sep_by_space;" " /* CHAR_MAX */" |
| 39 |
.BR " char int_n_sep_by_space;" " /* CHAR_MAX */" |
| 40 |
.BR " char int_p_sign_posn;" " /* CHAR_MAX */" |
| 41 |
.BR " char int_n_sign_posn;" " /* CHAR_MAX */" |
| 42 |
.B }; |
| 43 |
.EE |
| 44 |
.SH DESCRIPTION |
| 45 |
Contains members related to the formatting of numeric values. |
| 46 |
In the "C" locale, its members have the values |
| 47 |
shown in the comments above. |
| 48 |
.SH STANDARDS |
| 49 |
C11, POSIX.1-2008. |
| 50 |
.SH HISTORY |
| 51 |
POSIX.1-2001. |
| 52 |
.SH SEE ALSO |
| 53 |
.BR setlocale (3), |
| 54 |
.BR localeconv (3), |
| 55 |
.BR charsets (7), |
| 56 |
.BR locale (7) |