| 1439 | return ymax - ymin; |
| 1440 | } |
| 1441 | void 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 | |
| 1451 | void remove_substr_str(char *str, int start_index, int end_index) { |
| 1452 | int len = strlen(str); |