@ -13,3 +13,12 @@ void trimLeft(char *input) {
input[i] = input[firstIndex + i];
}
void trimRight(char *input) {
size_t length = strlen(input);
int index = length - 1;
while (index >= 0 && isspace(input[index])) {
input[index] = '\0';
index--;