diff options
Diffstat (limited to 'winsup/cygwin/regexp/regerror.c')
-rw-r--r-- | winsup/cygwin/regexp/regerror.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/winsup/cygwin/regexp/regerror.c b/winsup/cygwin/regexp/regerror.c new file mode 100644 index 000000000..ab6954e08 --- /dev/null +++ b/winsup/cygwin/regexp/regerror.c @@ -0,0 +1,24 @@ +#if 0 +#ifndef lint +static char *rcsid = "$Id$"; +#endif /* not lint */ +#endif + +#include "regexp.h" +#include <stdio.h> + +void +regerror(s) +const char *s; +{ +#ifdef ERRAVAIL + error("regexp: %s", s); +#else +/* + fprintf(stderr, "regexp(3): %s\n", s); + exit(1); +*/ + return; /* let std. egrep handle errors */ +#endif + /* NOTREACHED */ +} |