]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libregexp/regerror.c
Import sources from 2011-03-30 iso image
[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 }