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

Function regex_compile

sys/share/pmatchregex.c:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32boolean
33regex_compile(const char *s, struct nhregex *re)
34{
35 if (!re)
36 return FALSE;
37 if (re->pat)
38 free((genericptr_t) re->pat);
39
40 re->pat = dupstr(s);
41 return TRUE;
42}
43
44char *
45regex_error_desc(struct nhregex *re UNUSED, char *errbuf)

Callers

nothing calls this directly

Calls 1

dupstrFunction · 0.85

Tested by

no test coverage detected