locale.h revision 1539
11539Srgrimes/* 21539Srgrimes * Copyright (c) 1991, 1993 31539Srgrimes * The Regents of the University of California. All rights reserved. 41539Srgrimes * 51539Srgrimes * Redistribution and use in source and binary forms, with or without 61539Srgrimes * modification, are permitted provided that the following conditions 71539Srgrimes * are met: 81539Srgrimes * 1. Redistributions of source code must retain the above copyright 91539Srgrimes * notice, this list of conditions and the following disclaimer. 101539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111539Srgrimes * notice, this list of conditions and the following disclaimer in the 121539Srgrimes * documentation and/or other materials provided with the distribution. 131539Srgrimes * 3. All advertising materials mentioning features or use of this software 141539Srgrimes * must display the following acknowledgement: 151539Srgrimes * This product includes software developed by the University of 161539Srgrimes * California, Berkeley and its contributors. 171539Srgrimes * 4. Neither the name of the University nor the names of its contributors 181539Srgrimes * may be used to endorse or promote products derived from this software 191539Srgrimes * without specific prior written permission. 201539Srgrimes * 211539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 221539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241539Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 251539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 291539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311539Srgrimes * SUCH DAMAGE. 321539Srgrimes * 331539Srgrimes * @(#)locale.h 8.1 (Berkeley) 6/2/93 341539Srgrimes */ 351539Srgrimes 361539Srgrimes#ifndef _LOCALE_H_ 371539Srgrimes#define _LOCALE_H_ 381539Srgrimes 391539Srgrimesstruct lconv { 401539Srgrimes char *decimal_point; 411539Srgrimes char *thousands_sep; 421539Srgrimes char *grouping; 431539Srgrimes char *int_curr_symbol; 441539Srgrimes char *currency_symbol; 451539Srgrimes char *mon_decimal_point; 461539Srgrimes char *mon_thousands_sep; 471539Srgrimes char *mon_grouping; 481539Srgrimes char *positive_sign; 491539Srgrimes char *negative_sign; 501539Srgrimes char int_frac_digits; 511539Srgrimes char frac_digits; 521539Srgrimes char p_cs_precedes; 531539Srgrimes char p_sep_by_space; 541539Srgrimes char n_cs_precedes; 551539Srgrimes char n_sep_by_space; 561539Srgrimes char p_sign_posn; 571539Srgrimes char n_sign_posn; 581539Srgrimes}; 591539Srgrimes 601539Srgrimes#ifndef NULL 611539Srgrimes#define NULL 0 621539Srgrimes#endif 631539Srgrimes 641539Srgrimes#define LC_ALL 0 651539Srgrimes#define LC_COLLATE 1 661539Srgrimes#define LC_CTYPE 2 671539Srgrimes#define LC_MONETARY 3 681539Srgrimes#define LC_NUMERIC 4 691539Srgrimes#define LC_TIME 5 701539Srgrimes 711539Srgrimes#define _LC_LAST 6 /* marks end */ 721539Srgrimes 731539Srgrimes#include <sys/cdefs.h> 741539Srgrimes 751539Srgrimes__BEGIN_DECLS 761539Srgrimesstruct lconv *localeconv __P((void)); 771539Srgrimeschar *setlocale __P((int, const char *)); 781539Srgrimes__END_DECLS 791539Srgrimes 801539Srgrimes#endif /* _LOCALE_H_ */ 81