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

Function remove_substr_str

leif.c:1451–1456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1449}
1450
1451void remove_substr_str(char *str, int start_index, int end_index) {
1452 int len = strlen(str);
1453
1454 memmove(str + start_index, str + end_index + 1, len - end_index);
1455 str[len - (end_index - start_index) + 1] = '\0';
1456}
1457
1458void insert_i_str(char *str, char ch, int32_t index) {
1459 int len = strlen(str);

Callers 1

input_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected