home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / EDITOR / STEVIE.ZIP / REGEXP.ARC / REGERROR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1987-09-13  |  359 b   |  20 lines

  1. #include <stdio.h>
  2.  
  3. void
  4. regerror(s)
  5. char *s;
  6. {
  7. #ifdef ERRAVAIL
  8.     error("regexp: %s", s);
  9. #else
  10.     fprintf(stderr, "regexp(3): %s\n", s);
  11.     exit(1);
  12. /*
  13.     note:    if the program using regexp(3) wants to handle the regexp
  14.         errors, comment out the above and use this
  15. */        
  16.     return;      /* let using program handle errors */
  17. #endif
  18.     /* NOTREACHED */
  19. }
  20.