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

Function append_slash

sys/amiga/amidos.c:367–380  ·  view source on GitHub ↗

* Add a slash to any name not ending in / or :. There must * be room for the /. */

Source from the content-addressed store, hash-verified

365 * be room for the /.
366 */
367void
368append_slash(char *name)
369{
370 char *ptr;
371
372 if (!*name)
373 return;
374
375 ptr = eos(name) - 1;
376 if (*ptr != '/' && *ptr != ':') {
377 *++ptr = '/';
378 *++ptr = '\0';
379 }
380}
381
382void
383getreturn(const char *str)

Callers

nothing calls this directly

Calls 1

eosFunction · 0.85

Tested by

no test coverage detected