37 static const char unk[] =
"*** unknown regex error code 0x%x ***";
67 char convbuf[
sizeof(
unk) + 50];
75 if (strcmp(r->
name, errbuf) == 0)
89 sprintf(convbuf,
"REG_%u", (
unsigned) icode);
107 len = strlen(msg) + 1;
110 if (errbuf_size >
len)
114 memcpy(errbuf, msg, errbuf_size - 1);
115 errbuf[errbuf_size - 1] =
'\0';
int errcode(int sqlerrcode)
static const struct rerr rerrs[]
size_t pg_regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)