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

Function nt_regularize

outdated/sys/wince/winhack.c:326–336  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

324 */
325
326void nt_regularize(s) /* normalize file name */
327register char *s;
328{
329 register unsigned char *lp;
330
331 for (lp = s; *lp; lp++)
332 if (*lp == '?' || *lp == '"' || *lp == '\\' || *lp == '/'
333 || *lp == '>' || *lp == '<' || *lp == '*' || *lp == '|'
334 || *lp == ':' || (*lp > 127))
335 *lp = '_';
336}
337
338void
339win32_abort()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected