06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

};<br />

Return Value<br />

char p_cs_precedes; /* 1 if currency symbol precedes<br />

* positive value, 0 if currency<br />

* symbol follows value */<br />

char p_sep_by_space; /* 1 if currency symbol is<br />

* separated from value by a<br />

* space, 0 otherwise */<br />

char n_cs_precedes; /* 1 if currency symbol precedes<br />

* a negative value, 0 if currency<br />

* symbol follows value */<br />

char n_sep_by_space; /* 1 if currency symbol is<br />

* separated from a negative value<br />

* by a space, 0 if currency symbol<br />

* follows value */<br />

char p_sign_posn; /* Indicates position of positive<br />

* value symbol */<br />

char n_sign_posn; /* Indicates position of negative<br />

* value symbol */<br />

The elements of grouping and mon_grouping are interpreted according to the<br />

following:<br />

CHAR_MAX No further grouping is to be performed.<br />

0 The previous element is to be repeatedly used for the<br />

remainder of the digits.<br />

other The integer value is the number of digits that comprise the<br />

current group. The next element is examined to determine<br />

the size of the next group of digits before the current group.<br />

The value of p_sign_posn and n_sign_posn is interpreted according to the<br />

following:<br />

0 Parentheses surround the quantity and currency_symbol.<br />

1 The sign string precedes the quantity and currency_symbol.<br />

2 The sign string succeeds the quantity and currency_symbol.<br />

3 The sign string immediately precedes currency_symbol.<br />

4 The sign string immediately precedes currency_symbol.<br />

This function returns a pointer to the filled-in lconv structure. This structure must<br />

not be changed by your program, but it may be overwritten by a subsequent call to<br />

3-90 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

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

Saved successfully!

Ooh no, something went wrong!