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

Function fix_glyphname

src/glyphs.c:183–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183staticfn char *
184fix_glyphname(char *str)
185{
186 char *c;
187
188 for (c = str; *c; c++) {
189 if (*c >= 'A' && *c <= 'Z')
190 *c += (char) ('a' - 'A');
191 else if (*c >= '0' && *c <= '9')
192 ;
193 else if (*c < 'a' || *c > 'z')
194 *c = '_';
195 }
196 return str;
197}
198
199int
200glyph_to_cmap(int glyph)

Callers 1

parse_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected