06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

pREPC+ <strong>System</strong> <strong>Calls</strong> localeconv<br />

localeconv Obtains the current locale settings.<br />

#include <br />

struct lconv *localeconv(void)<br />

Description<br />

The localeconv() function obtains the current locale settings that relate to<br />

numeric values, putting them into a statically allocated structure of type lconv. It<br />

returns a pointer to that structure.<br />

The members of lconv with type char * are pointers to strings, any of which<br />

(except decimal_point) can point to “”, to indicate that the value is not available<br />

in the current locale or is of zero length. The members with type char are<br />

nonnegative numbers, any of which can be CHAR_MAX to indicate the value is not<br />

available in the current locale.<br />

The lconv structure is defined as follows:<br />

struct lconv {<br />

char *decimal_point; /* Decimal point character for<br />

* non-monetary values */<br />

char *thousands_sep; /* Thousands separator for<br />

* non-monetary values */<br />

char *grouping; /* Specifies grouping for<br />

* non-monetary values */<br />

char *int_curr_symbol; /* International currency symbol */<br />

char *currency_symbol; /* The local currency symbol */<br />

char *mon_decimal_point;/* Decimal point character for<br />

* monetary values */<br />

char *mon_thousands_sep;/* Thousands separator for<br />

* monetary values */<br />

char *mon_grouping; /* Specifies grouping for<br />

* monetary values */<br />

char *positive_sign; /* Positive value indicator<br />

* for monetary values */<br />

char *negative_sign; /* Negative value indicator<br />

* for monetary values */<br />

char int_frac_digits; /* Number of digits displayed<br />

* to the right of the decimal<br />

* point for monetary values<br />

* displayed using international<br />

* format */<br />

char frac_digits; /* Number of digits displayed<br />

* to the right of the decimal<br />

* point for monetary values */<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 3-89<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!