aboutsummaryrefslogtreecommitdiff
path: root/src/libregexp/regerror.c
blob: 2cd1e3e28c7b9d1a2ac2c4b94823e28f9a9bb12d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "lib9.h"
#include "regexp9.h"

void
regerror(char *s)
{
	char buf[132];

	strcpy(buf, "regerror: ");
	strcat(buf, s);
	strcat(buf, "\n");
	write(2, buf, strlen(buf));
	exit(1);
}