home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d6xx / d645 / elvis.lha / Elvis / AmiElvis-1.5.lha / Elvis-1.5 / src / regexp.h < prev    next >
C/C++ Source or Header  |  1992-04-07  |  579b  |  22 lines

  1. /*
  2.  * Definitions etc. for regexp(3) routines.
  3.  *
  4.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  5.  * not the System V one.
  6.  */
  7. #define NSUBEXP  10
  8.  
  9. typedef struct regexp {
  10.     char    *startp[NSUBEXP];
  11.     char    *endp[NSUBEXP];
  12.     int    minlen;        /* length of shortest possible match */
  13.     char    first;        /* first character, if known; else \0 */
  14.     char    bol;        /* boolean: must start at beginning of line? */
  15.     char    program[1];    /* Unwarranted chumminess with compiler. */
  16. } regexp;
  17.  
  18. extern regexp *regcomp();
  19. extern int regexec();
  20. extern void regsub();
  21. extern void regerror();
  22.