0
How to erase an white space from a string ?
3 Respuestas
+ 3
there are a number of ways. There is a simple library function you can use called isspace () that checks for this.
or you can use strcmp(stuff, " "). It returns 0 if they're equal.
Then proceed to modify the array.
Don't forget #includes! :)
0
A side note,
I would use memmove() over strcpy ()
0
Can you please write some code as an example ?