mirror of
https://git.suckless.org/9base
synced 2025-08-28 19:03:48 -07:00
initial import
This commit is contained in:
14
lib9/regex/regerror.c
Normal file
14
lib9/regex/regerror.c
Normal file
@@ -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));
|
||||
exits("regerr");
|
||||
}
|
Reference in New Issue
Block a user