regerror.c - 9base - revived minimalist port of Plan 9 userland to Unix | |
git clone git://git.suckless.org/9base | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
regerror.c (196B) | |
--- | |
1 #include "lib9.h" | |
2 #include "regexp9.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 } |