icon Top 9 categories map      RocketAware > man pages >


Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.

The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Search all pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


RocketLink!--> Man page versions: OpenBSD FreeBSD RedHat Solaris Others

RE_COMP(3)                OpenBSD Programmer's Manual               RE_COMP(3)

     re_comp, re_exec - regular expression handler

     #include <unistd.h>

     char *
     re_comp(const char *s);

     re_exec(const char *s);

     This interface is made obsolete by regex(3).  It is available from the
     compatibility library, libcompat.

     The re_comp() function compiles a string into an internal form suitable
     for pattern matching.  The re_exec() function checks the argument string
     against the last string passed to re_comp().

     The re_comp() function returns 0 if the string s was compiled successful-
     ly; otherwise a string containing an error message is returned. If
     re_comp() is passed 0 or a null string, it returns without changing the
     currently compiled regular expression.

     The re_exec() function returns 1 if the string s matches the last com-
     piled regular expression, 0 if the string s failed to match the last com-
     piled regular expression, and -1 if the compiled regular expression was
     invalid (indicating an internal error).

     The strings passed to both re_comp() and re_exec() may have trailing or
     embedded newline characters; they are terminated by NULs. The regular ex-
     pressions recognized are described in the manual entry for ed(1),  given
     the above difference.

     The re_exec() function returns -1 for an internal error.

     The re_comp() function returns one of the following strings if an error

           No previous regular expression,
           Regular expression too long,
           unmatched \(,
           missing ],
           too many \(\) pairs,
           unmatched \).

     ed(1),  egrep(1),  ex(1),  fgrep(1),  grep(1),  regex(3)

     The re_comp() and re_exec() functions appeared in 4.0BSD.

OpenBSD 2.6                      June 4, 1993                                1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.

(Corrections, notes, and links courtesy of RocketAware.com)

[Detailed Topics]
FreeBSD Sources for re_comp(3) functions

[Overview Topics]

Up to: NUL terminated String Comparison and Search - covers functions for comparing strings, finding characters within strings, et al.

RocketLink!--> Man page versions: OpenBSD FreeBSD RedHat Solaris Others

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > re_comp.3/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments