summaryrefslogtreecommitdiffstats
path: root/lib/libcompat/regexp/regerror.c
blob: 6d0077d6342936f3a375f7b557034c5afb19b452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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 */
}
OpenPOWER on IntegriCloud