I have an array with some values like:
char s[] = {" ","a","b","c"," "};
How I can remove these empty values?
Description (Collected from comment):
I have an array that I got from a function and when i printed with sprintf
returns me a string like this: " foo"
two blanks or depend, this because I am replacing some characters with blank-space (' ')
characters, but when I use the variable in another function, these spaces gives me errors because the empty values, then I need to do a "split" like java does, how can I do this?