![]()  | 
![]()  | 
![]()  | 
![]()  | 
Execute a regular expression
#include <unix.h> int re_exec( char *s );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
![]()  | 
This function is in libc.a, but not in libc.so (in order to save space). | 
The re_exec() function compares the string pointed to by the string argument with the last regular expression passed to re_comp().
The re_comp() and re_exec() functions support simple regular expressions. The regular expressions of the form \{m\}, \{m,\}, or \{m,n\} aren't supported.
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | Yes | 
| Thread | Yes | 
re_comp(), regcomp(), regerror(), regexec()
grep in the Utilities Reference
![]()  | 
![]()  | 
![]()  | 
![]()  |