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

Function String_UNSAFE_TrimEnd

src/String.c:345–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void String_UNSAFE_TrimEnd(cc_string* str) {
346 int i;
347 for (i = str->length - 1; i >= 0; i--) {
348 if (str->buffer[i] != ' ') break;
349 str->length--;
350 }
351}
352
353int String_IndexOfConst(const cc_string* str, const char* sub) {
354 int i, j;

Callers 6

LInput_CopyFromClipboardFunction · 0.85
EntryList_LoadFunction · 0.85
String_UNSAFE_SeparateFunction · 0.85
SPConnection_AddPartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected