xref: /plan9-contrib/sys/src/ape/lib/regexp/regerror.c (revision 7dd7cddf99dd7472612f1413b4da293630e6b1bc)
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <string.h>
4 #include "regexp.h"
5 
6 void
7 regerror(char *s)
8 {
9 	char buf[132];
10 
11 	strcpy(buf, "regerror: ");
12 	strcat(buf, s);
13 	strcat(buf, "\n");
14 	fwrite(buf, 1, strlen(buf), stderr);
15 	exit(1);
16 }
17