1996-09-23 21:29:51 -04:00
|
|
|
/*
|
|
|
|
* regerror
|
|
|
|
*/
|
1995-10-13 23:34:21 -04:00
|
|
|
#include <stdio.h>
|
1996-09-23 21:29:51 -04:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
void
|
1995-10-13 23:34:21 -04:00
|
|
|
regerror(s)
|
1996-09-23 21:29:51 -04:00
|
|
|
char *s;
|
1995-10-13 23:34:21 -04:00
|
|
|
{
|
|
|
|
#ifdef ERRAVAIL
|
1996-09-23 21:29:51 -04:00
|
|
|
error("regexp: %s", s);
|
1995-10-13 23:34:21 -04:00
|
|
|
#else
|
1996-09-23 21:29:51 -04:00
|
|
|
fprintf(stderr, "regexp(3): %s\n", s);
|
|
|
|
exit(EXIT_FAILURE);
|
1995-10-13 23:34:21 -04:00
|
|
|
#endif
|
1996-09-23 21:29:51 -04:00
|
|
|
/* NOTREACHED */
|
1995-10-13 23:34:21 -04:00
|
|
|
}
|