OSDN Git Service

59b30df53632f2d32c9375d6b7ac20d48cd113e7
[linuxjm/LDP_man-pages.git] / draft / man3 / re_comp.3
1 .\" Copyright (C), 1995, Graeme W. Wilford. (Wilf.)
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 .\" Wed Jun 14 16:10:28 BST 1995 Wilf. (G.Wilford@@ee.surrey.ac.uk)
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH RE_COMP 3 2013\-06\-21 GNU "Linux Programmer's Manual"
33 .SH 名前
34 re_comp, re_exec \- BSD の正規表現関数
35 .SH 書式
36 \fB#define _REGEX_RE_COMP\fP
37 .br
38 \fB#include <sys/types.h>\fP
39 .br
40 \fB#include <regex.h>\fP
41 .sp
42 \fBchar *re_comp(char *\fP\fIregex\fP\fB);\fP
43 .sp
44 \fBint re_exec(char *\fP\fIstring\fP\fB);\fP
45 .SH 説明
46 \fBre_comp\fP()  は、 \fIregex\fP で示される NULL で終端された正規表現をコンパイルするために使用される。
47 コンパイルされたパターンは静的な領域を使用しており、そのパターンバッファ は以降の \fBre_comp\fP()  の使用によって上書きされる。 もし
48 \fIregex\fP が NULL ならば何の操作も行われず、パターンバッファの内容は 置き換えられない。
49
50 \fBre_exec\fP()  は、 \fIstring\fP が指す NULL で終端された文字列が前回コンパイルされた \fIregex\fP
51 にマッチするかどうかを評価するために使用される。
52 .SH 返り値
53 \fBre_comp\fP()  は、 \fIregex\fP のコンパイルに成功した場合 NULL を返し、
54 それ以外の場合は適切なエラーメッセージへのポインタを返す。
55
56 \fBre_exec\fP()  は、一致した場合 1 を、失敗した場合 0 を返す。
57 .SH 属性
58 .SS "マルチスレッディング (pthreads(7) 参照)"
59 関数 \fBre_comp\fP() と \fBre_exec\fP() はスレッドセーフではない。
60 .SH 準拠
61 4.3BSD.
62 .SH 注意
63 これらの関数は廃止予定である。代わりに \fBregcomp\fP(3)  に書かれている関数を使用すべきである。
64 .SH 関連項目
65 \fBregcomp\fP(3), \fBregex\fP(7), GNU regex manual
66 .SH この文書について
67 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
68 である。プロジェクトの説明とバグ報告に関する情報は
69 http://www.kernel.org/doc/man\-pages/ に書かれている。