Imported tab->space correction by redhat
[infodrom/manpages-de] / 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 .\" Translated into German by Ralf Demmer, Translation & Consulting
26 .\" rdemmer@rdemmer.de, http://www.rdemmer.de
27 .\" Berlin, 20.4.1999
28 .\"
29 .TH RE_COMP 3 "20. April 1999" "GNU" "Bibliotheksfunktionen"
30 .SH BEZEICHNUNG
31 re_comp, re_exec \- BSD regex Funktionen
32 .SH "ÜBERSICHT"
33 .B #include <regex.h>
34 .sp
35 .BI "char *re_comp(char *" regex );
36 .br
37 .BI "int re_exec(char *" string );
38 .SH BESCHREIBUNG
39 .B re_comp
40 wird für die Übersetzung des mit NULL abgeschlossenen regulären 
41 Suchausdruckes verwendet, auf den 
42 .IR regex 
43 verweist.
44 Das übersetzte Muster belegt einen festgelegten Bereich, den Muster-Puffer, 
45 welcher bei jeder darauf folgenden Verwendung von 
46 .BR re_comp 
47 überschrieben wird.
48 Ist 
49 .I regex
50 gleich
51 .BR NULL ,
52 so wird keine Operation ausgeführt und der Muster-Puffer bleibt unverändert.
53
54 .B re_exec
55 wird verwendet, um festzustellen, ob die mit NULL abgeschlossene Zeichenkette 
56 auf die 
57 .I string
58 verweist, mit der vorher übersetzten 
59 .IR regex 
60 übereinstimmt.
61 .SH "RÜCKGABEWERT"
62 .B re_comp
63 gibt bei erfolgter Übersetzung 
64 .B NULL
65 zurück. Andernfalls ist der Rückgabewert von 
66 .I regex
67 ein Zeiger auf eine entsprechende Fehlermeldung.
68
69 .B re_exec
70 gibt 1 bei Übereinstimmung und andernfalls 0 zurück.
71 .SH "KONFORM ZU"
72 BSD 4.3
73 .SH "SIEHE AUCH"
74 .BR regex (7),
75 .BR "GNU regex manual" .