summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/regexp/regerror.c
blob: bfa158299d2c03d4532521cef40d22195d5c440f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "regexp.h"

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

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