xref: /inferno-os/utils/libregexp/regerror.c (revision d0e1d143ef6f03c75c008c7ec648859dd260cbab)
1 #include <lib9.h>
2 #include "regexp.h"
3 
4 void
5 regerror(char *s)
6 {
7 	char buf[132];
8 
9 	strcpy(buf, "regerror: ");
10 	strcat(buf, s);
11 	strcat(buf, "\n");
12 	write(2, buf, strlen(buf));
13 	exits("regerr");
14 }
15