MCPcopy Create free account
hub / github.com/NetHack/NetHack / regex_compile

Function regex_compile

sys/share/posixregex.c:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65boolean
66regex_compile(const char *s, struct nhregex *re)
67{
68 if (!re)
69 return FALSE;
70 if ((re->err = regcomp(&re->re, s, REG_EXTENDED | REG_NOSUB)))
71 return FALSE;
72 return TRUE;
73}
74
75char *
76regex_error_desc(struct nhregex *re, char *errbuf)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected