aboutsummaryrefslogtreecommitdiff
path: root/src/libregexp/regerror.c
blob: 99ff0c74b855898fd120e1f191106fe16c441ae5 (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));
	exits("regerr");
}