View Single Post
Old Apr 13th, 2005, 3:02 AM   #2
kirkl_uk
Programmer
 
kirkl_uk's Avatar
 
Join Date: Apr 2005
Location: England
Posts: 86
Rep Power: 4 kirkl_uk is on a distinguished road
Send a message via MSN to kirkl_uk
Hoping I understand this right, why don't you loop through the string, using strlen for the counter termination, and then using something simple like "if(str[i] == ' ') str2[i] = '*';" ? I did something similar to this in a previous project where I replaced a space with a _ for writing/reading files.

kirkl_uk
kirkl_uk is offline   Reply With Quote