Mail Archives: djgpp/1999/01/09/15:45:47
doh! i am using strcpy right now, and it does not work. I want to
replace the old contents of a string with new contents, which come from
antohter variable.
Martin Str|mberg wrote:
>
> vern (vern AT iocc DOT com) wrote:
> : I am looking for a way to reuse the same string variable throughout a
> : function. i have a function that changes the contents of a string.
> : what i need to do is earase the old contents of the string, and replace
> : it with new contents. both the new and old ocntents in teh string are
> : the same length. he is the way i currently am using the strings:
> :
> : msg1=msg2;
> : msg2=msg3;
> : msg3=msg4;
> : msg4=msg;
> :
> : basicly im jsut rotating the contents of these variables. all are 78
> : elements long, and char type.
>
> Perhaps strcpy() could be what you're looking for?
>
> Right,
>
> MartinS
- Raw text -