catgetmsg.3int

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3INT 代码 · 共 90 行

3INT
90
字号
.TH catgetmsg 3int.SH Name catgetmsg \- get message from a message catalog.SH Syntax .B #include <nl_types.h>.PPchar *catgetmsg(\fIcatd, set_num, msg_num, buf, buflen\fP).br.B nl_catd \fIcatd\fP;.br.B int \fIset_num, msg_num, buflen\fP;.br.B char \fI*buf\fP;.SH Description .NXR "catgetmsg subroutine"The .PN catgetmsgfunction has been superceded by the.PN catgetsfunction.  You should use the .PN catgetsfunction to get messages from a message catalog.  You might want to rewrite calls to the .PN catgetmsgfunction so that they use the.PN catgets function.  The .PN catgetmsgfunction is available for compatibility with XPG\-2 conformant software and might not be available in the future.For more information on using .PN catgets ,see the .MS catgets 3int reference page..PPThe function.PN catgetmsgattempts to read up to .I buflen\-1 bytes of a message string into the area pointed to by .I buf .The parameter.PN buflenis an integer value containing the size in bytes of .IR buf .The return string is always terminated with a null byte..PPThe parameter .I catdis a catalog descriptor returned from an earlier call to.PN catopenand identifies the message catalog containing the message set (.IR set_num ) and the program message  (.IR msg_num )..PPThe arguments.I set_num and .I msg_num are defined as integer values for maximum portability.Where possible, you should use symbolic names for message and set numbers,rather hard-coding integer values into your source programs.If you use symbolic names, you must run .PN mkcatdefs prior to .PN gencat and be sure the appropriate include file is used in your program..SH Return Value .brIf successful,.PN catgetmsgreturns a pointer to the message string in .IR buf .Otherwise, if .I catdis invalid or if.I set_numor .I msg_num are not in the message catalog,.PN catgetmsgreturns a pointer to an empty (null) string..SH See Also intro(3int), gencat(1int), catopen(3int), catgets(3int), nl_types(5int).br\fIGuide to Developing International Software\fP

⌨️ 快捷键说明

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