added space folded test case and improved unfolding function

This commit is contained in:
2024-01-20 20:44:15 +01:00
parent b2a2d09a92
commit 7a5b3bc97a
2 changed files with 29 additions and 0 deletions

View File

@ -58,6 +58,8 @@ void unfolding_string(char *folded_string, char *unfolded_string)
while (isblank(folded_string[i])) {
i++;
}
unfolded_string[j] = ' ';
j++;
unfolded_string[j] = folded_string[i];
j++;
} else {