nothing there on removing BEGINNING and END BLANK spaces....
are there any function to use?
If you can work in C++ you could use function find_first_not_ of() in class <string>
http://www.cppreferenc e.com/cppstring/index.html
otherwise if you are working in C is to search the character array for the first non space character then copy the characters from that point into another array. When that is working you can then reverse search the resultant sting replacing the first of the trailing spaces with a '\0'
Comment