DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

langinfo(FP)


langinfo -- language information constants

Syntax

#include <langinfo.h>

Description

The langinfo.h header file contains constants used to identify items of nl_langinfo(S) data.

The contents of the header file are:

/*
 *      LC_CTYPE
 */

#define CODESET 1000 /* codeset name */

/* * LC_NUMERIC items: */

#define RADIXCHAR 2000 /* Decimal separator */ #define THOUSEP 2001 /* Thousands separator */

/* * LC_TIME items: */ #define D_FMT 3000 /* Date format only */ #define T_FMT 3001 /* Time format only */ #define T_FMT_AMPM 3043 /* a.m./p.m. time format string */ #define AM_STR 3002 /* AM */ #define PM_STR 3003 /* PM */ #define D_T_FMT 3004 /* Date and time format */ #define DAY_1 3005 /* Sunday */ #define DAY_2 3006 /* Monday */ #define DAY_3 3007 /* Tuesday */ #define DAY_4 3008 /* Wednesday */ #define DAY_5 3009 /* Thursday */ #define DAY_6 3010 /* Friday */ #define DAY_7 3011 /* Saturday */ #define ABDAY_1 3012 /* Sun */ #define ABDAY_2 3013 /* Mon */ #define ABDAY_3 3014 /* Tue */ #define ABDAY_4 3015 /* Wed */ #define ABDAY_5 3016 /* Thu */ #define ABDAY_6 3017 /* Fri */ #define ABDAY_7 3018 /* Sat */ #define MON_1 3019 /* January */ #define MON_2 3020 /* February */ #define MON_3 3021 /* March */ #define MON_4 3022 /* April */ #define MON_5 3023 /* May */ #define MON_6 3024 /* June */ #define MON_7 3025 /* July */ #define MON_8 3026 /* August */ #define MON_9 3027 /* September */ #define MON_10 3028 /* October */ #define MON_11 3029 /* November */ #define MON_12 3030 /* December */ #define ABMON_1 3031 /* Jan */ #define ABMON_2 3032 /* Feb */ #define ABMON_3 3033 /* Mar */ #define ABMON_4 3034 /* Apr */ #define ABMON_5 3035 /* May */ #define ABMON_6 3036 /* Jun */ #define ABMON_7 3037 /* Jul */ #define ABMON_8 3038 /* Aug */ #define ABMON_9 3039 /* Sep */ #define ABMON_10 3040 /* Oct */ #define ABMON_11 3041 /* Nov */ #define ABMON_12 3042 /* Dec */ #define ERA 3044 /* Era */ #define ERA_D_FMT 3045 /* era date format string */ #define ALT_DIGITS 3046 /* alternative symbols for digits */ #define ERA_D_T_FMT 3047 /* era date and time format string */ #define ERA_T_FMT 3048 /* era time format string */

/* * LC_COLLATE is not queried through this interface */

/* * LC_MESSAGES items: */

#define YESSTR 5000 /* Affirmative reply to y/n question */ #define NOSTR 5001 /* Negative reply to y/n question */ #define YESEXPR 5002 /* affirmative response expression */ #define NOEXPR 5003 /* negative response expression */

/* * LC_MONETARY items: */

#define CRNCYSTR 6000 /* Currency symbol */

See also

nl_types(FP), nl_langinfo(S)

Standards conformance

langinfo is conformant with:
X/Open CAE Specification, System Interfaces and Headers, Issue 4, Version 2.
© 2003 File Formats for Programming (FP)
SCO OpenServer Release 5.0.7 -- 11 February 2003