I have to change "home%2fsome+one" for "home/some one" using ansi C on linux.
I had something like
chptr = "marcelo-iturbe";
while (*chptr++) if (*chptr == '-') *chptr = '_';
but that core dumps and it doesn't cover replcing %2f for a /
Any help is apreciated.