File: s_re_fail.c

package info (click to toggle)
super 3.30.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,860 kB
  • sloc: ansic: 24,673; sh: 297; makefile: 296
file content (27 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
static const char rcsid[] = "$Id: s_re_fail.c,v 1.6 2004/04/30 17:00:58 will Exp $";
#ifdef vms
#include stdio
#else
#include <stdio.h>
#endif

#include "config.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

/* 
 * s_re_fail:
 *	internal error handler for s_re_exec.
 *
 *	should probably do something like a
 *	longjump to recover gracefully.
 */ 
void	
s_re_fail(s, c)
char *s;
char c;
{
	(void) fprintf(stderr, "%s [opcode %o]\n", s, c);
	exit(1);
}