home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 329_01 / regerror.c < prev    next >
C/C++ Source or Header  |  1988-12-09  |  265b  |  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.