1 .\" Copyright 1993 Mitchum DSouza <m.dsouza@mrc-applied-psychology.cambridge.ac.uk>
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Updated, aeb, 980809
25 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
26 .\" all rights reserved.
27 .\" Translated Tue Dec 16 19:43:01 JST 1997
28 .\" by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
29 .\" Updated & Modified Mon Mar 1 1999
30 .\" by NAKANO Takeo <nakano@apm.seikei.ac.jp>
32 .TH CATGETS 3 1998-08-09 "" "Linux Programmer's Manual"
34 .\"O catgets \- get message from a message catalog
36 catgets \- ¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°¤«¤é¥á¥Ã¥»¡¼¥¸¤ò¼è¤ê½Ð¤¹
40 .B #include <nl_types.h>
42 .BI "char *catgets(nl_catd " catalog ", int " set_number \
43 ", int " message_number ,
44 .BI " const char *" message );
49 .\"O reads the message
50 .\"O .IR message_number ,
53 .\"O from the message catalog identified by
57 .\"O is a catalog descriptor returned from an earlier call to
60 ¤Ï catalog ¤Ç»ØÄꤵ¤ì¤¿¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°¤«¤é¡¢
69 ¤Î¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤ÆÆÀ¤é¤ì¤¿¥«¥¿¥í¥°
70 ¥Ç¥£¥¹¥¯¥ê¥×¥¿¤ò»ØÄꤹ¤ë¡£
71 .\"O The fourth argument
73 .\"O points to a default message string which will be returned by
75 .\"O if the identified message catalog is not currently available.
77 .\"O message-text is contained in an internal buffer area and should be copied by
78 .\"O the application if it is to be saved or modified.
79 .\"O The return string is
80 .\"O always terminated with a null byte.
83 ¤Ï¡¢»ØÄê¤Î¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°¤¬¸½ºßÍøÍѤǤ¤Ê¤¤
86 ¤¬ÊÖ¤¹¥Ç¥Õ¥©¥ë¥È¤Î¥á¥Ã¥»¡¼¥¸¤ò»Ø¤¹¡£
87 ¥á¥Ã¥»¡¼¥¸¥Æ¥¥¹¥È¤ÏÆâÉô¤Î¥Ð¥Ã¥Õ¥¡Îΰè¤Ë³ÊǼ¤µ¤ì¤Æ¤ª¤ê¡¢
88 Êݸ¤äÊѹ¹¤ò¹Ô¤¦¾ì¹ç¤Ë¤Ï¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¦¤Ç¥³¥Ô¡¼¤¹¤ëɬÍפ¬¤¢¤ë¡£
89 ÊÖ¤µ¤ì¤ëʸ»úÎó¤Ï¾ï¤Ë¥Ì¥ëʸ»ú¤Ç½ªÃ¼¤µ¤ì¤ë¡£
90 .\"O .SH "RETURN VALUE"
95 .\"O returns a pointer to an internal buffer area
96 .\"O containing the null-terminated message string.
99 ¤ÏÆâÉô¤Î¥Ð¥Ã¥Õ¥¡Îΰè¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
100 ¤³¤³¤Ë¤Ï¥Ì¥ëʸ»ú¤Ç½ªÃ¼¤µ¤ì¤¿¥á¥Ã¥»¡¼¥¸Ê¸»úÎ󤬳ÊǼ¤µ¤ì¤Æ¤¤¤ë¡£
103 .\"O returns the value
108 .\"O .SH "CONFORMING TO"
113 .\"O These functions are only available in libc.so.4.4.4c and above.
114 .\"O The Jan 1987 X/Open Portability Guide specifies a more subtle
117 .\"O is returned if the message catalog specified by
119 .\"O is not available, while an empty string is returned
120 .\"O when the message catalog is available but does not contain
121 .\"O the specified message.
122 ¤³¤ì¤é¤Î´Ø¿ô¤Ï libc.so.4.4.4c °Ê¹ß¤Ç¤·¤«»È¤¨¤Ê¤¤¡£
123 Jan 1987 X/Open Portability Guide ¤Ç¤Ï¡¢¥¨¥é¡¼¤Î»þ¤Ë
124 ÊÖ¤µ¤ì¤ëÃͤˤè¤êÈù̯¤Ê»ØÄê¤ò¤·¤Æ¤¤¤ë¡£
126 ¤Ç»ØÄꤵ¤ì¤¿¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°¤¬ÍøÍѤǤ¤Ê¤¤¾ì¹ç¤Ï
128 ¤òÊÖ¤·¡¢°ìÊý¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°¤Ï¤¢¤ë¤¬»ØÄꤷ¤¿¥á¥Ã¥»¡¼¥¸¤¬¤Ê¤¤¾ì¹ç¤Ï
129 ¶õ¤Îʸ»úÎó¤¬ÊÖ¤µ¤ì¤ë¡£
130 .\"O These two possible error returns seem to be discarded in SUSv2
131 .\"O in favor of always returning
133 SUSv2 ¤Ç¤Ï¤³¤ÎÆó¼ïÎà¤Î¥¨¥é¡¼¥ê¥¿¡¼¥ó¤ÏÇѻߤµ¤ì¡¢
136 ¤òÊÖ¤¹¤³¤È¤Ë¤·¤¿¤è¤¦¤Ç¤¢¤ë¡£