C Standard Library Reference Guide (6) locale.h

Source: Internet
Author: User

6. Locale.h

Header file locale is useful for setting specific location information.

Variable:

struct LCONV

Macro:

Null

Lc_all

Lc_collate

Lc_ctype

Lc_monetary

Lc_numeric

Lc_time

Function:

Localeconv ();

SetLocale ();

6.1. Variables and Definitions

The data structure "Lconv" contains the following member variables. The use of this data structure will be described in "6.3 localeconv".

Char *decimal_point;

Char *thousands_sep;

Char *grouping;

Char *int_curr_symbol;

Char *currency_symbol;

Char *mon_decimal_point;

Char *mon_thousands_sep;

Char *mon_grouping;

Char *positive_sign;

Char *negative_sign;

Char int_frac_digits;

Char frac_digits;

Char p_cs_precedes;

Char P_sep_by_space;

Char n_cs_precedes;

Char N_sep_by_space;

Char p_sign_posn;

Char n_sign_posn;

The macro "LC_" will be described in 6.2 setlocale. "NULL" is a null pointer constant value.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.