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

Function first_dir_separator

src/port/path.c:102–111  ·  view source on GitHub ↗

* first_dir_separator * * Find the location of the first directory separator, return * NULL if not found. */

Source from the content-addressed store, hash-verified

100 * NULL if not found.
101 */
102char *
103first_dir_separator(const char *filename)
104{
105 const char *p;
106
107 for (p = skip_drive(filename); *p; p++)
108 if (IS_DIR_SEP(*p))
109 return unconstify(char *, p);
110 return NULL;
111}
112
113/*
114 * first_path_var_separator

Callers 8

load_librariesFunction · 0.85
substitute_libpath_macroFunction · 0.85
find_in_dynamic_libpathFunction · 0.85
check_valid_version_nameFunction · 0.85
find_my_execFunction · 0.85

Calls 1

skip_driveFunction · 0.85

Tested by

no test coverage detected