MCPcopy Index your code
hub / github.com/RsyncProject/rsync / src_file

Function src_file

util2.c:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132const char *src_file(const char *file)
133{
134 static const char *util2 = __FILE__;
135 static int prefix = -1;
136
137 if (prefix < 0) {
138 const char *cp = strrchr(util2, '/');
139 prefix = cp ? cp - util2 + 1 : 0;
140 }
141
142 if (prefix && strncmp(file, util2, prefix) == 0)
143 return file + prefix;
144 return file;
145}

Callers 5

my_allocFunction · 0.85
_out_of_memoryFunction · 0.85
_overflow_exitFunction · 0.85
_exit_cleanupFunction · 0.85
log_exitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected