locale.h

来自「AT80296C 单片机中使用此头文件可方便查找东西,方便于编程 板头文件」· C头文件 代码 · 共 66 行

H
66
字号
/*
 *	Version : @(#)locale.h	1.2
 */

/**************************************************************************
**                                                                        *
**  FILE        :  locale.h                                         	  *
**                                                                        *
**  DESCRIPTION :  Include file with prototypes and macros for 		  *
**		   localization.					  *
**                                                                        *
**  COPYRIGHT   :  1995 Tasking Software B.V., Amersfoort                 *
**                                                                        *
**************************************************************************/

#ifndef	_locale_h_
#define _locale_h_

#pragma varparams(setlocale, localeconv)

#ifndef NULL
#define	NULL		((void *)0)
#endif

#if ! defined(FARDATA)
#if _FAR_DATA_ || _FAR_CONST_
#define FARDATA far
#else
#define FARDATA
#endif
#endif

struct lconv {
    char FARDATA *decimal_point;
    char FARDATA *thousands_sep;
    char FARDATA *grouping;
    char FARDATA *int_curr_symbol;
    char FARDATA *currency_symbol;
    char FARDATA *mon_decimal_point;
    char FARDATA *mon_thousands_sep;
    char FARDATA *mon_grouping;
    char FARDATA *positive_sign;
    char FARDATA *negative_sign;
    char int_frac_digits;
    char frac_digits;
    char p_cs_precedes;
    char p_sep_by_space;
    char n_cs_precedes;
    char n_sep_by_space;
    char p_sign_posn;
    char n_sign_posn;
};

#define LC_ALL		0
#define LC_COLLATE	1
#define LC_CTYPE	2
#define LC_NUMERIC	3
#define LC_TIME		4
#define LC_MONETARY	5

char FARDATA *setlocale( int, const FARDATA char *);

struct lconv *localeconv( void );

#endif  /* _locale_h_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?