Standard library header <locale.h>
From cppreference.net
이 헤더는 localization 라이브러리의 일부입니다.
타입 |
||
|
localeconv
가 반환하는 형식 지정 세부 정보
(구조체) |
||
상수 |
||
|
구현 정의 널 포인터 상수
(매크로 상수) |
||
|
setlocale
을 위한 로케일 범주
(매크로 상수) |
||
함수 |
||
|
현재 C 로케일을 가져오고 설정함
(함수) |
||
|
현재 로케일의 숫자 및 통화 형식 지정 세부 정보를 조회함
(함수) |
||
시놉시스
// "C" 로케일에서 멤버들은 주석에 지정된 값을 가져야 합니다: struct lconv { char* decimal_point; // "." char* thousands_sep; // "" char* grouping; // "" char* mon_decimal_point; // "" char* mon_thousands_sep; // "" char* mon_grouping; // "" char* positive_sign; // "" char* negative_sign; // "" char* currency_symbol; // "" char frac_digits; // CHAR_MAX char p_cs_precedes; // CHAR_MAX char n_cs_precedes; // CHAR_MAX char p_sep_by_space; // CHAR_MAX char n_sep_by_space; // CHAR_MAX char p_sign_posn; // CHAR_MAX char n_sign_posn; // CHAR_MAX char* int_curr_symbol; // "" char int_frac_digits; // CHAR_MAX char int_p_cs_precedes; // CHAR_MAX char int_n_cs_precedes; // CHAR_MAX char int_p_sep_by_space; // CHAR_MAX char int_n_sep_by_space; // CHAR_MAX char int_p_sign_posn; // CHAR_MAX char int_n_sign_posn; // CHAR_MAX }; char* setlocale(int category, const char* locale); lconv* localeconv(); #define NULL /* 설명 참조 */ #define LC_ALL /* 설명 참조 */ #define LC_COLLATE /* 설명 참조 */ #define LC_CTYPE /* 설명 참조 */ #define LC_MONETARY /* 설명 참조 */ #define LC_NUMERIC /* 설명 참조 */ #define LC_TIME /* 설명 참조 */
참고 사항
- NULL 는 다음 헤더에서도 정의됩니다: