MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_safe_basename

Function acl_safe_basename

lib_acl/src/stdlib/string/acl_basename.c:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18/* acl_safe_basename - skip directory prefix */
19
20const char *acl_safe_basename(const char *path)
21{
22 const char *result;
23
24 if ((result = strrchr(path, '/')) == NULL
25 && (result = strrchr(path, '\\')) == NULL)
26 {
27 result = (const char *) path;
28 } else
29 result += 1;
30 return result;
31}
32
33

Callers 15

server_initFunction · 0.85
usageFunction · 0.85
acl_fiber_server_mainFunction · 0.85
server_initFunction · 0.85
usageFunction · 0.85
acl_fiber_server_mainFunction · 0.85
usageFunction · 0.85
server_initFunction · 0.85
fiber_mainFunction · 0.85
__log_openFunction · 0.85
__log_openFunction · 0.85
aio_server_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…