code: 9ferno

ref: eb81a50383aca3b30ce3687f5daf7a86c68abae2
dir: /utils/libregexp/regerror.c/

View raw version
#include <lib9.h>
#include "regexp.h"

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

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