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