1993-08-02 21:48:44 +04:00
|
|
|
#ifndef lint
|
1993-08-26 04:43:03 +04:00
|
|
|
static char *rcsid = "$Id: regerror.c,v 1.3 1993/08/26 00:45:33 jtc Exp $";
|
1993-08-02 21:48:44 +04:00
|
|
|
#endif /* not lint */
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
#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 */
|
|
|
|
}
|