OSDN Git Service

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