MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_path_to_wide

Function cbm_path_to_wide

src/foundation/win_utf8.h:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120static inline wchar_t *cbm_path_to_wide(const char *utf8_path) {
121 wchar_t *wide = cbm_utf8_to_wide(utf8_path);
122 wchar_t *extended = cbm_wide_path_to_extended(wide);
123 free(wide);
124 return extended;
125}
126
127/* GetModuleFileNameW can preserve the \\?\ spelling used to launch a process.
128 * Internal UTF-8 paths use conventional DOS/UNC spelling and add the prefix

Callers 15

wide_statFunction · 0.85
safe_statFunction · 0.85
publish_corrupt_backupFunction · 0.85
cbm_subprocess_spawn_winFunction · 0.85
cbm_mmap_readFunction · 0.85
cbm_file_existsFunction · 0.85
cbm_is_dirFunction · 0.85
cbm_file_sizeFunction · 0.85
diag_directory_prepareFunction · 0.85

Calls 2

cbm_utf8_to_wideFunction · 0.85

Tested by 3

th_unlink_forceFunction · 0.68