1 .\" Copyright (C), 1995, Graeme W. Wilford. (Wilf.)
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>
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.
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.
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
25 .\" Formatted or processed versions of this manual, if unaccompanied by
26 .\" the source, must acknowledge the copyright and authors of this work.
28 .\" Wed Jun 14 16:10:28 BST 1995 Wilf. (G.Wilford@@ee.surrey.ac.uk)
30 .TH RE_COMP 3 1995-07-14 "GNU" "Linux Programmer's Manual"
32 re_comp, re_exec \- BSD の正規表現関数
34 .B #define _REGEX_RE_COMP
36 .B #include <sys/types.h>
40 .BI "char *re_comp(char *" regex );
42 .BI "int re_exec(char *" string );
47 で示される NULL で終端された正規表現をコンパイルするために使用される。
48 コンパイルされたパターンは静的な領域を使用しており、そのパターンバッファ
54 が NULL ならば何の操作も行われず、パターンバッファの内容は
60 が指す NULL で終端された文字列が前回コンパイルされた
62 にマッチするかどうかを評価するために使用される。
67 のコンパイルに成功した場合 NULL を返し、
68 それ以外の場合は適切なエラーメッセージへのポインタを返す。
71 は、一致した場合 1 を、失敗した場合 0 を返す。
76 .\"O These functions are obsolete; the functions documented in
78 .\"O should be used instead.