MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Platform_EncodePath

Function Platform_EncodePath

src/atari_st/Platform_Atari.c:137–140  ·  view source on GitHub ↗

#######################################################################################################################* *-----------------------------------------------------Directory/File------------------------------------------------------* *#########################################################################################################################*/

Source from the content-addressed store, hash-verified

135*-----------------------------------------------------Directory/File------------------------------------------------------*
136*#########################################################################################################################*/
137void Platform_EncodePath(cc_filepath* dst, const cc_string* path) {
138 int len = String_CopyToRaw(dst->buffer, sizeof(dst->buffer) - 1, path);
139 dst->buffer[len] = '\0'; // Always null terminate just in case
140}
141
142void Platform_DecodePath(cc_string* dst, const cc_filepath* path) {
143 String_AppendConst(dst, path->buffer);

Callers

nothing calls this directly

Calls 1

String_CopyToRawFunction · 0.85

Tested by

no test coverage detected