Import sources from 2011-03-30 iso image
This commit is contained in:
commit
e5888a1ffd
7810 changed files with 2489717 additions and 0 deletions
15
sys/src/libregexp/regerror.c
Executable file
15
sys/src/libregexp/regerror.c
Executable file
|
@ -0,0 +1,15 @@
|
|||
#include <u.h>
|
||||
#include <libc.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");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue