MCPcopy Create free account
hub / github.com/apache/cloudberry / last_dir_separator

Function last_dir_separator

src/port/path.c:137–147  ·  view source on GitHub ↗

* last_dir_separator * * Find the location of the last directory separator, return * NULL if not found. */

Source from the content-addressed store, hash-verified

135 * NULL if not found.
136 */
137char *
138last_dir_separator(const char *filename)
139{
140 const char *p,
141 *ret = NULL;
142
143 for (p = skip_drive(filename); *p; p++)
144 if (IS_DIR_SEP(*p))
145 ret = p;
146 return unconstify(char *, ret);
147}
148
149
150/*

Callers 11

sendDirFunction · 0.85
sendFileFunction · 0.85
get_prognameFunction · 0.85
resolve_symlinksFunction · 0.85
find_other_execFunction · 0.85
ECPGconnectFunction · 0.85
mainFunction · 0.85
process_target_fileFunction · 0.85
check_file_excludedFunction · 0.85
setupFunction · 0.85
setup_bin_pathsFunction · 0.85

Calls 1

skip_driveFunction · 0.85

Tested by

no test coverage detected