home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / fed0217s.zip / source / regerror.cpp < prev    next >
C/C++ Source or Header  |  1998-04-14  |  314b  |  22 lines

  1. #include <regexp.h>
  2. #include <stdio.h>
  3.  
  4. #ifdef ERRAVAIL
  5. void regerror(char *s)
  6. #else
  7. void regerror(char *)
  8. #endif
  9. {
  10. #ifdef ERRAVAIL
  11.     error("regexp: %s", s);
  12. #else
  13. /*
  14.     fprintf(stderr, "regexp(3): %s\n", s);
  15.     exit(1);
  16. */
  17.     return;      /* let std. egrep handle errors */
  18. #endif
  19.     /* NOTREACHED */
  20. }
  21.  
  22.