Annotated edit history of
re_comp(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
re_comp |
|
|
2 |
!!!re_comp |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
CONFORMING TO |
|
|
8 |
SEE ALSO |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
re_comp, re_exec - BSD regex functions |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__#include __ |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
__char *re_comp(char *__''regex''__); |
|
|
21 |
int re_exec(char *__''string''__);__ |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
__re_comp__ is used to compile the null-terminated |
|
|
26 |
regular expression pointed to by ''regex''. The compiled |
|
|
27 |
pattern occupies a static area, the pattern buffer, which is |
|
|
28 |
overwritten by subsequent use of __re_comp__. If |
|
|
29 |
''regex'' is __NULL__, no operation is performed and |
|
|
30 |
the pattern buffer's contents are not altered. |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
__re_exec__ is used to assess whether the null-terminated |
|
|
34 |
string pointed to by ''string'' matches the previously |
|
|
35 |
compiled ''regex''. |
|
|
36 |
!!RETURN VALUE |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
__re_comp__ returns __NULL__ on successful compilation |
|
|
40 |
of ''regex'' otherwise it returns a pointer to an |
|
|
41 |
appropriate error message. |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
__re_exec__ returns 1 for a successful match, zero for |
|
|
45 |
failure. |
|
|
46 |
!!CONFORMING TO |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
BSD 4.3 |
|
|
50 |
!!SEE ALSO |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
regex(7), __GNU regex manual__ |
|
|
54 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.