1*41346Sbostic #include <stdio.h> 2*41346Sbostic 3*41346Sbostic void 4*41346Sbostic regerror(s) 5*41346Sbostic char *s; 6*41346Sbostic { 7*41346Sbostic #ifdef ERRAVAIL 8*41346Sbostic error("regexp: %s", s); 9*41346Sbostic #else 10*41346Sbostic /* 11*41346Sbostic fprintf(stderr, "regexp(3): %s\n", s); 12*41346Sbostic exit(1); 13*41346Sbostic */ 14*41346Sbostic return; /* let std. egrep handle errors */ 15*41346Sbostic #endif 16*41346Sbostic /* NOTREACHED */ 17*41346Sbostic } 18