RE_COMP
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ATTRIBUTES
CONFORMING TO
NOTES
SEE ALSO
COLOPHON
NAME
re_comp, re_exec − BSD regex functions
SYNOPSIS
#define
_REGEX_RE_COMP
#include <sys/types.h>
#include <regex.h>
char *re_comp(const char *regex);
int re_exec(const char *string);
DESCRIPTION
re_comp() is used to compile the null-terminated regular expression pointed to by regex. The compiled pattern occupies a static area, the pattern buffer, which is overwritten by subsequent use of re_comp(). If regex is NULL, no operation is performed and the pattern buffer’s contents are not altered.
re_exec() is used to assess whether the null-terminated string pointed to by string matches the previously compiled regex.
RETURN VALUE
re_comp() returns NULL on successful compilation of regex otherwise it returns a pointer to an appropriate error message.
re_exec() returns 1 for a successful match, zero for failure.
ATTRIBUTES
Multithreading
(see pthreads(7))
The re_comp() and re_exec() functions are not
thread-safe.
CONFORMING TO
4.3BSD.
NOTES
These functions are obsolete; the functions documented in regcomp(3) should be used instead.
SEE ALSO
regcomp(3), regex(7), GNU regex manual
COLOPHON
This page is part of release 3.69 of the Linux 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/.
More Linux Commands
manpages/passmass.1.html
passmass(1) - change password on multiple machines (ManPage)
Passmass changes a password on multiple machines. If you have accounts on several machines that do not share password databases, Passmass can help you keep them
manpages/XShmCreateImage.3.html
XShmCreateImage(3) - X Shared Memory extension functions....
XShmQueryExtension checks to see if the shared memory extensions are available for the specified display. XShmQueryVersion returns the version numbers of the ex
manpages/XpDestroyContext.3x.html
XpDestroyContext(3x) - Gets the current print context-id for
XpDestroyContext closes any outstanding associations between the print context and any display connections, and then destroys the print context. All display con
manpages/mrtg-traffic-sum.1.html
mrtg-traffic-sum(1) Builds monthly traffic summary from mrtg
The mrtg-traffic-sum goes through the mrtg logs for the targets in the the config file specified and builds the traffic total for the last month in Giga Bytes.
manpages/endprotoent.3.html
endprotoent(3) - get protocol entry - Linux manual page.....
endprotoent.3 - The getprotoent() function reads the next entry from the protocols database (see protocols(5)) and returns a protoent structure containing the b
manpages/arm_sync_file_range.2.html
arm_sync_file_range(2) - sync a file segment with disk......
sync_file_range() permits fine control when synchronizing the open file referred to by the file descriptor fd with disk. offset is the starting byte of the file
manpages/Tcl_CreateAlias.3.html
Tcl_CreateAlias(3) - manage multiple Tcl interpreters, alias
These procedures are intended for access to the multiple interpreter facility from inside C programs. They enable managing multiple interpreters in a hierarchic
manpages/TYPE_NUMERIC.3form.html
TYPE_NUMERIC(3form) - form system global variables (ManPage)
These are building blocks for the form library, defining fields that can be created using set_fieldtype(3X). Each provides functions for field- and character-va
manpages/getservbyport_r.3.html
getservbyport_r(3) - get service entry (reentrant) (ManPage)
The getservent_r(), getservbyname_r(), and getservbyport_r() functions are the reentrant equivalents of, respectively, getservent(3), getservbyname(3), and gets
manpages/fmt.1.html
fmt(1) - simple optimal text formatter - Linux manual page
Reformat each paragraph in the FILE(s), writing to standard output. The option -WIDTH is an abbreviated form of --width=DIGITS. Mandatory arguments to long opti
manpages/rewinddir.3.html
rewinddir(3) - reset directory stream - Linux manual page...
The rewinddir() function resets the position of the directory stream dirp to the beginning of the directory. RETURN VALUE The rewinddir() function returns no va
manpages/XtPeekEvent.3.html
XtPeekEvent(3) - query and process events and input.........
XtNextEvent has been replaced by XtAppNextEvent. XtPeekEvent has been replaced by XtAppPeekEvent. XtPending has been replaced by XtAppPending. XtProcessEvent ha
