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