Edinburgh Speech Tools  2.4-release
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
regerror.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "regexp.h"
4 
5 void
6 hs_regerror(s)
7 const char *s;
8 {
9 #ifdef ERRAVAIL
10  error("regexp: %s", s);
11 #else
12  fprintf(stderr, "regexp(3): %s\n", s);
13  exit(1);
14  return; /* let std. egrep handle errors */
15 #endif
16  /* NOTREACHED */
17 }