2011-03-30 15:46:40 +03:00
|
|
|
#include <u.h>
|
|
|
|
#include <libc.h>
|
2016-04-26 22:23:44 -05:00
|
|
|
#include <regexp.h>
|
2011-03-30 15:46:40 +03:00
|
|
|
|
|
|
|
void
|
|
|
|
regerror(char *s)
|
|
|
|
{
|
|
|
|
char buf[132];
|
|
|
|
|
|
|
|
strcpy(buf, "regerror: ");
|
|
|
|
strcat(buf, s);
|
|
|
|
strcat(buf, "\n");
|
|
|
|
write(2, buf, strlen(buf));
|
|
|
|
exits("regerr");
|
|
|
|
}
|