Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
560
char *
561
basename(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
575
int
576
filecopy(char *from, char *to)
Callers
nothing calls this directly
Calls
1
strrchr
Function · 0.85
Tested by
no test coverage detected