MCPcopy Create free account
hub / github.com/cococry/leif / remove_i_str

Function remove_i_str

leif.c:1441–1449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1439 return ymax - ymin;
1440}
1441void remove_i_str(char *str, int32_t index) {
1442 int32_t len = strlen(str);
1443 if (index >= 0 && index < len) {
1444 for (int32_t i = index; i < len - 1; i++) {
1445 str[i] = str[i + 1];
1446 }
1447 str[len - 1] = '\0';
1448 }
1449}
1450
1451void remove_substr_str(char *str, int start_index, int end_index) {
1452 int len = strlen(str);

Callers 1

input_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected