From b2cfc4e2e71d0f0a5113ddfbd93c8285cc4d74e4 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 30 Sep 2003 17:47:41 +0000 Subject: Initial revision --- src/libregexp/regerror.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/libregexp/regerror.c (limited to 'src/libregexp/regerror.c') diff --git a/src/libregexp/regerror.c b/src/libregexp/regerror.c new file mode 100644 index 00000000..2cd1e3e2 --- /dev/null +++ b/src/libregexp/regerror.c @@ -0,0 +1,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); +} -- cgit v1.2.3