I have to read a string and get rid of spaces before the first letter of the string, and multiple spaces. I want to do it with a for loop.
So I have change this(for example):
***this***** is ******..........*******test******\0
(* = space)
To this:
this is a test \0
I'm also not too familiar with the isspace function, so I don't want to use that.
Yes, it's homework. But it is just a small part of the program I'm having trouble with.
Thanks.
Edit: Won't allow whitespace. I used asterisks to show whitespace.