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

Function match_glyph

src/glyphs.c:457–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457int
458match_glyph(char *buf)
459{
460 char workbuf[BUFSZ];
461
462 /* buf contains a G_ glyph reference, not an S_ symbol.
463 There could be an R-G-B color attached too.
464 Let's get a copy to work with. */
465 Snprintf(workbuf, sizeof workbuf, "%s", buf); /* get a copy */
466 return glyphrep(workbuf);
467}
468
469int
470glyphrep(const char *op)

Callers 2

parse_sym_lineFunction · 0.85
parsesymbolsFunction · 0.85

Calls 1

glyphrepFunction · 0.85

Tested by

no test coverage detected