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

Function String_FromReadonly

src/String.c:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30cc_string String_FromReadonly(STRING_REF const char* buffer) {
31 int len = String_Length(buffer);
32 return String_Init((char*)buffer, len, len);
33}
34
35
36void String_Copy(cc_string* dst, const cc_string* src) {

Callers 15

GLBackend_InitFunction · 0.85
Gfx_WarnIfNecessaryFunction · 0.85
MCCTextures_CheckSourceFunction · 0.85
Platform_LoadSysFontsFunction · 0.85
PrintFrameFunction · 0.85
DumpMiscFunction · 0.85

Calls 2

String_LengthFunction · 0.85
String_InitFunction · 0.85

Tested by

no test coverage detected