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

Function nt_regularize

sys/windows/windsys.c:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 */
217
218void nt_regularize(char* s) /* normalize file name */
219{
220 unsigned char *lp;
221
222 for (lp = (unsigned char *) s; *lp; lp++)
223 if (*lp == '?' || *lp == '"' || *lp == '\\' || *lp == '/'
224 || *lp == '>' || *lp == '<' || *lp == '*' || *lp == '|'
225 || *lp == ':' || (*lp > 127))
226 *lp = '_';
227}
228
229#if 0
230char *getxxx(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected