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

Function path_roundtrip_args

src/foundation/path_syntax_internal.c:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68#ifdef _WIN32
69static bool path_roundtrip_args(const char *source, size_t length, const wchar_t *wide,
70 size_t wide_capacity, const char *roundtrip,
71 size_t roundtrip_capacity) {
72 if (!source || !wide || !roundtrip || !length || length > CBM_PATH_SYNTAX_MAX_BYTES ||
73 !wide_capacity || wide_capacity > INT_MAX || !roundtrip_capacity ||
74 roundtrip_capacity > INT_MAX)
75 return false;
76 return source[length] == '\0' && !memchr(source, '\0', length);
77}
78
79cbm_path_syntax_result_t cbm_path_windows_roundtrip(const char *source, size_t length,
80 wchar_t *wide, size_t wide_capacity,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected