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

Function regularize

outdated/sys/be/bemain.c:148–156  ·  view source on GitHub ↗

normalize file name - we don't like .'s, /'s, spaces */

Source from the content-addressed store, hash-verified

146
147/* normalize file name - we don't like .'s, /'s, spaces */
148void
149regularize(char *s)
150{
151 register char *lp;
152
153 while ((lp = strchr(s, '.')) || (lp = strchr(s, '/'))
154 || (lp = strchr(s, ' ')))
155 *lp = '_';
156}
157
158static void
159process_options(int argc, char **argv)

Callers 1

getlockFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected