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

Function basename

sys/amiga/winreq.c:560–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560char *
561basename(char *str)
562{
563 char *t;
564
565 t = strrchr(str, '/');
566 if (!t)
567 t = strrchr(str, ':');
568 if (!t)
569 t = str;
570 else
571 ++t;
572 return (t);
573}
574
575int
576filecopy(char *from, char *to)

Callers

nothing calls this directly

Calls 1

strrchrFunction · 0.85

Tested by

no test coverage detected