OSDN Git Service

2a5f4f935135d687ac4d8409278d984a7a61a41f
[linuxjm/LDP_man-pages.git] / draft / man3 / re_comp.3
1 .\" Copyright (C), 1995, Graeme W. Wilford. (Wilf.)
2 .\"
3 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
4 .\"     all rights reserved.
5 .\" Translated Thu Dec 18 15:06:31 JST 1997
6 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
7 .\"
8 .\" Permission is granted to make and distribute verbatim copies of this
9 .\" manual provided the copyright notice and this permission notice are
10 .\" preserved on all copies.
11 .\"
12 .\" Permission is granted to copy and distribute modified versions of this
13 .\" manual under the conditions for verbatim copying, provided that the
14 .\" entire resulting derived work is distributed under the terms of a
15 .\" permission notice identical to this one.
16 .\"
17 .\" Since the Linux kernel and libraries are constantly changing, this
18 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
19 .\" responsibility for errors or omissions, or for damages resulting from
20 .\" the use of the information contained herein.  The author(s) may not
21 .\" have taken the same level of care in the production of this manual,
22 .\" which is licensed free of charge, as they might when working
23 .\" professionally.
24 .\"
25 .\" Formatted or processed versions of this manual, if unaccompanied by
26 .\" the source, must acknowledge the copyright and authors of this work.
27 .\"
28 .\" Wed Jun 14 16:10:28 BST 1995 Wilf. (G.Wilford@@ee.surrey.ac.uk)
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 .B #define _REGEX_RE_COMP
35 .br
36 .B #include <sys/types.h>
37 .br
38 .B #include <regex.h>
39 .sp
40 .BI "char *re_comp(char *" regex );
41 .sp
42 .BI "int re_exec(char *" string );
43 .SH 説明
44 .BR re_comp ()
45 は、
46 .I regex
47 で示される NULL で終端された正規表現をコンパイルするために使用される。
48 コンパイルされたパターンは静的な領域を使用しており、そのパターンバッファ
49 は以降の
50 .BR re_comp ()
51 の使用によって上書きされる。
52 もし
53 .I regex
54 が NULL ならば何の操作も行われず、パターンバッファの内容は
55 置き換えられない。
56
57 .BR re_exec ()
58 は、
59 .I string
60 が指す NULL で終端された文字列が前回コンパイルされた
61 .I regex
62 にマッチするかどうかを評価するために使用される。
63 .SH 返り値
64 .BR re_comp ()
65 は、
66 .I regex
67 のコンパイルに成功した場合 NULL を返し、
68 それ以外の場合は適切なエラーメッセージへのポインタを返す。
69
70 .BR re_exec ()
71 は、一致した場合 1 を、失敗した場合 0 を返す。
72 .SH 準拠
73 4.3BSD.
74 .\"O .SH NOTES
75 .SH 注意
76 .\"O These functions are obsolete; the functions documented in
77 .\"O .BR regcomp (3)
78 .\"O should be used instead.
79 これらの関数は廃止予定である。代わりに
80 .BR regcomp (3)
81 に書かれている関数を使用すべきである。
82 .SH 関連項目
83 .BR regcomp (3),
84 .BR regex (7),
85 GNU regex manual