]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libregexp/regerror.c
libregexp: simplify regular expression vm implementation
[plan9front.git] / sys / src / libregexp / regerror.c
1 #include <u.h>
2 #include <libc.h>
3 #include <regexp.h>
4
5 void
6 regerror(char *s)
7 {
8         char buf[132];
9
10         strcpy(buf, "regerror: ");
11         strcat(buf, s);
12         strcat(buf, "\n");
13         write(2, buf, strlen(buf));
14         exits("regerr");
15 }