OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / catgets.3
1 .\" Copyright 1993 Mitchum DSouza <m.dsouza@mrc-applied-psychology.cambridge.ac.uk>
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Updated, aeb, 980809
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH CATGETS 3 1998\-08\-09 "" "Linux Programmer's Manual"
32 .SH 名前
33 catgets \- メッセージカタログからメッセージを取り出す
34 .SH 書式
35 .nf
36 \fB#include <nl_types.h>\fP
37
38 \fBchar *catgets(nl_catd \fP\fIcatalog\fP\fB, int \fP\fIset_number\fP\fB, int \fP\fImessage_number\fP\fB,\fP
39 \fB              const char *\fP\fImessage\fP\fB);\fP
40 .fi
41 .SH 説明
42 \fBcatgets\fP()  reads the message \fImessage_number\fP, in set \fIset_number\fP,
43 from the message catalog identified by \fIcatalog\fP, where \fIcatalog\fP is a
44 catalog descriptor returned from an earlier call to \fBcatopen\fP(3).  The
45 fourth argument, \fImessage\fP, points to a default message string which will
46 be returned by \fBcatgets\fP()  if the identified message catalog is not
47 currently available.  The message\-text is contained in an internal buffer
48 area and should be copied by the application if it is to be saved or
49 modified.  The return string is always terminated with a null byte.
50 .SH 返り値
51 .LP
52 成功した場合、 \fBcatgets\fP()  は内部のバッファ領域へのポインタを返す。 ここにはヌル文字で終端されたメッセージ文字列が格納されている。
53 失敗した場合は \fImessage\fP を返す。
54 .SH 準拠
55 POSIX.1\-2001.
56 .SH 注意
57 これらの関数は libc.so.4.4.4c 以降でしか使えない。 Jan 1987 X/Open Portability Guide
58 では、エラーの時に 返される値により微妙な指定をしている。 \fIcatalog\fP で指定されたメッセージカタログが利用できない場合は
59 \fImessage\fP を返し、一方メッセージカタログはあるが指定したメッセージがない場合は 空の文字列が返される。 SUSv2
60 ではこの二種類のエラーリターンは廃止され、 常に \fImessage\fP を返すことにしたようである。
61 .SH 関連項目
62 \fBcatopen\fP(3), \fBsetlocale\fP(3)
63 .SH この文書について
64 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
65 である。プロジェクトの説明とバグ報告に関する情報は
66 http://www.kernel.org/doc/man\-pages/ に書かれている。