oops. that /0 should be a \0 > using this method, I'm assuming you don't know the length of the string, and > > that you want it filled with spaces. > > num=0; > while(string[num]!="/0") > string[num++]=" ";