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

Function regularize

sys/vms/vmsunix.c:167–174  ·  view source on GitHub ↗

normalize file name */

Source from the content-addressed store, hash-verified

165
166/* normalize file name */
167void regularize(char *s)
168{
169 char *lp;
170
171 for (lp = s; *lp; lp++) /* note: '-' becomes '_' */
172 if (!(isalpha(*lp) || isdigit(*lp) || *lp == '$'))
173 *lp = '_';
174}
175
176#undef getuid
177int

Callers 2

getlockFunction · 0.70
set_savefile_nameFunction · 0.50

Calls 1

isdigitFunction · 0.85

Tested by

no test coverage detected