I am trying to pass a string to a function in C to edit that string. I already know that I should pass a pointer to the string I want to change. However, I get weird results. This is my code, executed with the argument I am trying to pass a string to a function in C