Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
re_comp(3)
Edit
PageHistory
Diff
Info
LikePages
re_comp !!!re_comp NAME SYNOPSIS DESCRIPTION RETURN VALUE CONFORMING TO SEE ALSO ---- !!NAME re_comp, re_exec - BSD regex functions !!SYNOPSIS __#include __ __char *re_comp(char *__''regex''__); int re_exec(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. !!CONFORMING TO BSD 4.3 !!SEE ALSO regex(7), __GNU regex manual__ ----
2 pages link to
re_comp(3)
:
Man3r
fortune(6)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.