xref: /minix3/minix/commands/cawf/regerror.c (revision d9494baa34075b158415cc42d68bd0927d8124c1)
1 #include <stdio.h>
2 #include "regexp.h"
3 #include "proto.h"
4 
regerror(char * s)5 void regerror(char *s) {
6 #ifndef DOSPORT
7 #ifdef ERRAVAIL
8 	error("regexp: %s", s);
9 #else
10 	fprintf(stderr, "regexp(3): %s", s);
11 	exit(1);
12 #endif
13 	/* NOTREACHED */
14 #endif /* ifdef'd out for less's sake when reporting error inside less */
15 }
16