localeconv : localeconv « time.h « C Tutorial

C Tutorial
1. Language
2. Data Type
3. String
4. printf scanf
5. Operator
6. Statement
7. Array
8. Function
9. Structure
10. Pointer
11. Memory
12. Preprocessor
13. File
14. Data Structure
15. Search Sort
16. Wide Character String
17. assert.h
18. ctype.h
19. math.h
20. setjmp.h
21. signal.h
22. stdio.h
23. stdlib.h
24. string.h
25. time.h
26. wctype.h
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
C Tutorial » time.h » localeconv 
25. 7. 1. localeconv
ItemValue
Header filelocale.h
Declarationstruct lconv *localeconv(void);
Returnreturns geopolitical environmental information.


The lconv structure contains the following members (Reference from Book "C: the complete reference"):

char *decimal_point;     /* Decimal point character for nonmonetary values. */
  char *thousands_sep;     /* Thousands separator for nonmonetary values. */
  char *grouping;          /* Specifies grouping for nonmonetary values. */
  char *int_curr_symbol;   /* International currency symbol. */
  char *currency_symbol;   /* Local currency symbol. */
  char *mon_decimal_point; /* Decimal point character for monetary values. */
  char *mon_thousands_sep; /* Thousands separator for monetary values. */
  char *mon_grouping;      /* Specifies grouping for monetary values. */
  char *positive_sign;     /* Positive value indicator for monetary values. */
  char *negative_sign;     /* Negative value indicator for monetary values. */
  char int_frac_digits;    /* Number of digits displayed to the right of the decimal point for monetary values displayed using
                              international format. */
  char frac_digits;        /* Number of digits displayed to the right of the decimal point for monetary values displayed using
                              local format. */
  char p_cs_precedes;      /* 1 if currency symbol precedes positive value, 0 if currency
                              symbol follows value. */
  char p_sep_by_space;     /* 1 if currency symbol is separated from value by a space, 0 otherwise. In C99, contains a
                              value that indicates separation. */
  char n_cs_precedes;      /* 1 if currency symbol precedes a negative value, 0 if currency
                              symbol follows value. */
  char n_sep_by_space;     /* 1 if currency symbol is separated from a negative value by a space, 
                              0 if currency symbol follows value.*/
  char p_sign_posn;        /* Indicates position of positive value symbol. */
  char n_sign_posn;        /* Indicates position of negative value symbol. */
  char _p_cs_precedes;     /* 1 if currency symbol precedes positive value, 
                              0 if currency symbol follows value. 
                              Applies to internationally formatted values. */
  char _p_sep_by_space;    /* Indicates the separation between the currency symbol, sign, and a positive value.
                              Applies to internationally formatted values. */
  char _n_cs_precedes;     /* 1 if currency symbol precedes a negative value, 
                              0 if currency symbol follows value. 
                              Applies to internationally formatted values. */
  char _n_sep_by_space;    /* Indicates the separation between the currency symbol, sign, and a negative value.
                              Applies to internationally formatted values. */
  char _p_sign_posn;       /* Indicates position of positive value symbol. 
                              Applies to internationally formatted values. */
  char _n_sign_posn;       /* Indicates position of negative value symbol. 
                              Applies to internationally formatted values. */
#include <stdio.h>
  #include <locale.h>

  int main(void)
  {
    struct lconv lc;

    lc = *localeconv();

    printf("Decimal symbol is: %s\n", lc.decimal_point);

    

    return 0;
  }
Decimal symbol is: .
25. 7. localeconv
25. 7. 1. localeconv
ww__w_.___j__av___a__2_s_._c___o_m__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.