.\" Copyright (C), 1995, Graeme W. Wilford. (Wilf.)
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\" Wed Jun 14 16:10:28 BST 1995 Wilf. (G.Wilford@@ee.surrey.ac.uk)
.\"
-.TH RE_COMP 3 1995-07-14 "GNU" "Linux Programmer's Manual"
+.TH RE_COMP 3 2014-05-28 "GNU" "Linux Programmer's Manual"
.SH NAME
re_comp, re_exec \- BSD regex functions
.SH SYNOPSIS
.br
.B #include <regex.h>
.sp
-.BI "char *re_comp(char *" regex );
+.BI "char *re_comp(const char *" regex );
.sp
-.BI "int re_exec(char *" string );
+.BI "int re_exec(const char *" string );
.SH DESCRIPTION
.BR re_comp ()
is used to compile the null-terminated regular expression pointed to by
.I string
matches the previously compiled
.IR regex .
-.SH "RETURN VALUE"
+.SH RETURN VALUE
.BR re_comp ()
returns NULL on successful compilation of
.I regex
.BR re_exec ()
returns 1 for a successful match, zero for failure.
-.SH "CONFORMING TO"
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR re_comp ()
+and
+.BR re_exec ()
+functions are not thread-safe.
+.SH CONFORMING TO
4.3BSD.
.SH NOTES
These functions are obsolete; the functions documented in
.BR regcomp (3)
should be used instead.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR regcomp (3),
.BR regex (7),
GNU regex manual
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.