help| chars array

i need to get from the user array of chars and fix the spaces
example:

" Hello world " to "Hello world"

before and after - no spaces
between words - one space


i need to it without "isspace" or "\b"

anyone?
Please try to write the code yourself first.
Topic archived. No new replies allowed.