I'm checking my code currently for errors and found that I forgot to use '&' when I'm passing an array as a parameter to a function that I modify then.
I'm thinking that is because it's an array of chars, I'm already passing its address, even without the '&', but I couldn't validate it anywhere.
function prototype:
void removeWhiteChats(char *s);
Here's an example:
char p[] = "1 2 3 4 56";
removeWhiteChars(p);
print("%s,p);
Output: "123456";
and this works as well:
char p[] = "1 2 3 4 56";
removeWhiteChars(&p);
print("%s,p);
Output: "123456";