xref: /minix3/minix/commands/cawf/regerror.c (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1 #include <stdio.h>
2 #include "regexp.h"
3 #include "proto.h"
4 
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