2005-04-21 16:53:53 +02:00
|
|
|
/* The <locale.h> header is used to custom tailor currency symbols, decimal
|
|
|
|
* points, and other items to the local style. It is ANSI's attempt at
|
|
|
|
* avoiding cultural imperialism. The locale given below is for C.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _LOCALE_H
|
|
|
|
#define _LOCALE_H
|
|
|
|
|
2011-01-28 12:35:02 +01:00
|
|
|
#ifndef _MINIX_ANSI_H
|
|
|
|
#include <minix/ansi.h>
|
2005-04-21 16:53:53 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
struct lconv {
|
|
|
|
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_MAX */
|
|
|
|
char frac_digits; /* CHAR_MAX */
|
|
|
|
char p_cs_precedes; /* CHAR_MAX */
|
|
|
|
char p_sep_by_space; /* CHAR_MAX */
|
|
|
|
char n_cs_precedes; /* CHAR_MAX */
|
|
|
|
char n_sep_by_space; /* CHAR_MAX */
|
|
|
|
char p_sign_posn; /* CHAR_MAX */
|
|
|
|
char n_sign_posn; /* CHAR_MAX */
|
|
|
|
};
|
|
|
|
|
2010-07-22 12:03:31 +02:00
|
|
|
#include <sys/null.h>
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
#define LC_ALL 1
|
|
|
|
#define LC_COLLATE 2
|
|
|
|
#define LC_CTYPE 3
|
|
|
|
#define LC_MONETARY 4
|
|
|
|
#define LC_NUMERIC 5
|
|
|
|
#define LC_TIME 6
|
2010-06-22 11:31:16 +02:00
|
|
|
#define LC_MESSAGES 7
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/* Function Prototypes. */
|
|
|
|
_PROTOTYPE( char *setlocale, (int _category, const char *_locale) );
|
|
|
|
_PROTOTYPE( struct lconv *localeconv, (void) );
|
|
|
|
|
|
|
|
#endif /* _LOCALE_H */
|