nl_langinfo.3int
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3INT 代码 · 共 101 行
3INT
101 行
.TH nl_langinfo 3int.SH Namenl_langinfo \- language information.SH Syntax.B #include <nl_types.h>.br.B #include <langinfo.h>.PP.B char *nl_langinfo (\fIitem\fP).br.B nl_item \fIitem\fP;.SH Description.NXR "nl_langinfo subroutine"The function.PN nl_langinforeturns a pointer to a null-terminated string containing information relevant to a particular language or cultural area. The language is identified by the last successful call to the appropriate.PN setlocalecategory. The categories are shown in the following table and are defined in.PN <langinfo.h> ..PPFor instance, the following examplewould return a pointer to the string representing the abbreviated name forthe first day of the week, as defined by.PN setlocalecategory.PN LC_TIME :.EXnl_langinfo (ABDAY_1);.EE.PPIf the.PN setlocalecategory has not been called successfully,.PN langinfodata for a supported language is not available, or .PN itemis not defined, then.PN nl_langinforeturns a pointer to an empty (null) string.In the C locale, the return value is the American English string defined in the following table:.PP.TStab(@);lp-1v-1fHB lp-1v-1fHB lp-1v-1fHB lp-1v-1fHBlp-1v-1 lp-1v-1 lp-1v-1 lp-1v-1 ..sp 6p_.sp 6pIdentifier@Meaning@C locale@Category.sp 6p_.sp 6pNOSTR@Negative response@no@LC_ALLYESSTR@Positive response@yes@LC_ALLD_T_FMT@Default date and time format@%a %b %d@@@%H:%M:%S %Y@LC_TIMED_FMT@Default date format@%m/%d/%y@LC_TIMET_FMT@Default time format@%h:%m:%s@LC_TIME@DAY_1@Day name@Sunday@LC_TIMEDAY_2@Day name@Monday@LC_TIME\&....@....@....@....DAY_7@Day name@Saturday@LC_TIME@ABDAY_1@Abbreviated day name@Sun@LC_TIMEABDAY_2@Abbreviated day name@Mon@LC_TIMEABDAY_3@Abbreviated day name@Tue@LC_TIME\&....@....@....@....ABDAY_7@Abbreviated day name@Sat@LC_TIME@MON_1@Month name@January@LC_TIMEMON_2@Month name@February@LC_TIMEMON_3@Month name@March@LC_TIME\&....@....@....@....MON_12@Month name@December@LC_TIME@ABMON_1@Abbreviated month name@Jan@LC_TIMEABMON_2@Abbreviated month name@Feb@LC_TIME\&....@....@....@....ABMON_12@Abbreviated month name@Dec@LC_TIME@RADIXCHAR@Radix character@.@LC_NUMERICTHOUSEP@Thousands separator@ @LC_NUMERICCRNCYSTR@Currency format@ @LC_MONETARYAM_STR@String for AM@AM@LC_TIMEPM_STR@String for PM@PM@LC_TIMEEXPL_STR@Lower case exponent character@e@LC_NUMERICEXPU_STR@Upper case exponent character@E@LC_NUMERIC.sp 6p_.TE.PP.SH See Alsointro(3int), ic(1int), setlocale(3int), environ(5int), nl_types(5int).br.I Guide to Developing International Software
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?