1 #include <stdlib.h> 2 #include <stdio.h> 3 #include <string.h> 4 #include "regexp.h" 5 6 void regerror(char * s)7 regerror(char *s) 8 { 9 char buf[132]; 10 11 strcpy(buf, "regerror: "); 12 strcat(buf, s); 13 strcat(buf, "\n"); 14 fwrite(buf, 1, strlen(buf), stderr); 15 exit(1); 16 } 17