MCPcopy Create free account
hub / github.com/GJDuck/e9patch / getBasename

Function getBasename

src/e9tool/e9misc.cpp:125–131  ·  view source on GitHub ↗

* Get the source base name. */

Source from the content-addressed store, hash-verified

123 * Get the source base name.
124 */
125const char *getBasename(const char *file)
126{
127 const char *base = file;
128 for (size_t i = 0; file[i] != '\0'; i++)
129 base = (file[i] == '/'? file+i+1: base);
130 return base;
131}
132
133/*
134 * Get executable path.

Callers 2

makeMatchValueFunction · 0.85
sendArgumentDataMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected