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

Function regularize

sys/amiga/amidos.c:511–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511void
512regularize(char *s) /* normalize file name - we don't like :'s or /'s */
513{
514 char *lp;
515
516 while ((lp = strchr(s, ':')) || (lp = strchr(s, '/')))
517 *lp = '_';
518}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected