home *** CD-ROM | disk | FTP | other *** search
/ Dream 41 / Amiga_Dream_41.iso / Amiga / Programmation / c / PDC.lha / PDC / bin.lzh / include / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-06  |  593 b   |  26 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.  
  8. #define NSUBEXP  10
  9.  
  10. struct _regexp {
  11.     char *startp[NSUBEXP];
  12.     char *endp[NSUBEXP];
  13.     char regstart;        /* Internal use only. */
  14.     char reganch;        /* Internal use only. */
  15.     char *regmust;        /* Internal use only. */
  16.     int regmlen;        /* Internal use only. */
  17.     char program[1];    /* Unwarranted chumminess with compiler. */
  18. };
  19.  
  20. #define regexp struct _regexp
  21.  
  22. extern regexp *regcomp();
  23. extern int regexec();
  24. extern void regsub();
  25. extern void regerror();
  26.