1997-10-09 14:20:07 +04:00
|
|
|
#include <sys/cdefs.h>
|
1993-08-02 21:48:44 +04:00
|
|
|
#ifndef lint
|
1998-09-15 00:25:02 +04:00
|
|
|
__RCSID("$NetBSD: regerror.c,v 1.5 1998/09/14 20:25:03 tv 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
|
1998-09-15 00:25:02 +04:00
|
|
|
__compat_regerror(s)
|
1993-03-21 12:45:37 +03:00
|
|
|
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 */
|
|
|
|
}
|