xref: /minix3/minix/commands/cawf/regerror.c (revision b80da2a01d0bb632707b7b4e974aa32eaebbcc6f)
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