View Single Post

  #2 (permalink)  
Old 06-17-2006, 07:51 PM
Allan Allan is offline
Member
 
Join Date: May 2006
Posts: 45
Allan is on a distinguished road
Hi,
One way to remove space would be to use isspace() function. One can check each character whether it is isspace() and if satisfies leave that can go to the next character. If it is not satisfied you can store that character in a character array separately. After the whole string is checkd theycan print the new character array which has all the spaces removed in it. But while thinking in this line I have a related question namely what is the header file under which this isspace is placed. Somebody clarify this because this also need to be included while using isspace() function. Also let me know whether isispace can handle only single-space.

Regards,
Allan
Reply With Quote