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 で指定されたメッセージカタログから、
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 は、指定のメッセージカタログが現在利用できない
87 メッセージテキストは内部のバッファ領域に格納されており、
88 保存や変更を行う場合にはアプリケーション側でコピーする必要がある。
90 .\"O .SH "RETURN VALUE"
95 .\"O returns a pointer to an internal buffer area
96 .\"O containing the null-terminated message string.
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 では、エラーの時に
126 で指定されたメッセージカタログが利用できない場合は
128 を返し、一方メッセージカタログはあるが指定したメッセージがない場合は
130 .\"O These two possible error returns seem to be discarded in SUSv2
131 .\"O in favor of always returning
133 SUSv2 ではこの二種類のエラーリターンは廃止され、