home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Reference Guide / C-C++ Interactive Reference Guide.iso / c_ref / csource5 / 329_01 / regerror.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-12-09  |  265 b   |  20 lines

  1. /*
  2. **    name:        regerror.c
  3. **    purpose:    Look at the code
  4. */
  5. #include <stdio.h>
  6. #include "regexp.h"
  7.  
  8. void
  9. regerror(s)
  10. char *s;
  11. {
  12. #ifdef ERRAVAIL
  13.     error("regexp: %s", s);
  14. #else
  15.     fprintf(stderr, "regexp(3): %s", s);
  16.     exit(1);
  17. #endif
  18.     /* NOTREACHED */
  19. }
  20.