wmii/libregexp/regerror.c

16 lines
217 B
C
Raw Normal View History

#include <stdlib.h>
#include <plan9.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");
}