catopen.3int
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3INT 代码 · 共 85 行
3INT
85 行
.TH catopen 3int.SH Namecatopen, catclose \- open/close a message catalog.SH Syntax.B #include <nl_types.h>.PP.B nl_catd catopen (\fIname\fP, \fIoflag\fP).br.B char *name;.br.B int oflag;.PP.B int catclose (\fIcatd\fP).br.B nl_catd catd;.SH Description.NXR "catopen subroutine".NXR "catclose subroutine"The function.PN catopenopens a message catalog and returns a catalog descriptor.The parameter.I namespecifies the name of the message catalog to be opened.If.I namecontains a slash (/), then.I namespecifies a pathname for the message catalog.Otherwise, the environment variable.PN NLSPATHis used with.I namesubstituted for.I %N. For more information, see.MS environ 5int in the .I ULTRIX Reference Pages. If.PN NLSPATHdoes not exist in the environment, or if a message catalog cannot be opened in any of the paths specified by.PN NLSPATH ,the current directory is used..PPThe.I oflagis reserved for future use and must be set to zero (0).The results of setting this field to any other value are undefined..PPThe function.PN catclosecloses the message catalog identified by.PN catd ..SH RestrictionsUsing.PN catopencauses another file descriptor to be allocated by the calling process for the duration of the.PN catopencall..SH Return ValuesIf successful,.PN catopenreturns a message catalog descriptor for use on subsequent calls to.PN catgetmsg ,.PN catgetsand.PN catclose .If unsuccessful,.PN catopenreturns (\c.PN nl_catd\c)-1..PPThe.PN catclosefunction returns 0 if successful, otherwise \-1..SH See Alsointro(3int), setlocale(3), catgetmsg(3int), catgets(3int), environ(5int), nl_types(5int).br.I Guide to Developing International Software
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?