Re: A89: Clearing a string


[Prev][Next][Index][Thread]

Re: A89: Clearing a string




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++]=" ";