OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man3 / catgets.3
1 .\" Copyright 1993 Mitchum DSouza <m.dsouza@mrc-applied-psychology.cambridge.ac.uk>
2 .\"
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.
6 .\"
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.
11 .\"
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
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Updated, aeb, 980809
24 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH CATGETS 3 1998\-08\-09 "" "Linux Programmer's Manual"
30 .SH 名前
31 catgets \- メッセージカタログからメッセージを取り出す
32 .SH 書式
33 .nf
34 \fB#include <nl_types.h>\fP
35
36 \fBchar *catgets(nl_catd \fP\fIcatalog\fP\fB, int \fP\fIset_number\fP\fB, int \fP\fImessage_number\fP\fB,\fP
37 \fB              const char *\fP\fImessage\fP\fB);\fP
38 .fi
39 .SH 説明
40 \fBcatgets\fP()  は catalog で指定されたメッセージカタログから、 セット \fIset_number\fP のメッセージ
41 \fImessage_number\fP を読み取る。 \fIcatalog\fP は、 \fBcatopen\fP(3)  の呼び出しによって得られたカタログ
42 ディスクリプタを指定する。 4番目の引数 \fImessage\fP は、指定のメッセージカタログが現在利用できない 場合に \fBcatgets\fP()
43 が返すデフォルトのメッセージを指す。 メッセージテキストは内部のバッファ領域に格納されており、
44 保存や変更を行う場合にはアプリケーション側でコピーする必要がある。 返される文字列は常にヌル文字で終端される。
45 .SH 返り値
46 .LP
47 成功した場合、 \fBcatgets\fP()  は内部のバッファ領域へのポインタを返す。 ここにはヌル文字で終端されたメッセージ文字列が格納されている。
48 失敗した場合は \fImessage\fP を返す。
49 .SH 準拠
50 POSIX.1\-2001.
51 .SH 注意
52 これらの関数は libc.so.4.4.4c 以降でしか使えない。 Jan 1987 X/Open Portability Guide
53 では、エラーの時に 返される値により微妙な指定をしている。 \fIcatalog\fP で指定されたメッセージカタログが利用できない場合は
54 \fImessage\fP を返し、一方メッセージカタログはあるが指定したメッセージがない場合は 空の文字列が返される。 SUSv2
55 ではこの二種類のエラーリターンは廃止され、 常に \fImessage\fP を返すことにしたようである。
56 .SH 関連項目
57 \fBcatopen\fP(3), \fBsetlocale\fP(3)