home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 May / W2KPRK.iso / apps / posix / source / GREP / REGERROR.C < prev    next >
C/C++ Source or Header  |  1999-11-17  |  359b  |  28 lines

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