I have strValue as NSString, and I’d like to copy strValue‘s content to another place.
The place is mstrValue, which is an NSMutableString. Space for mstrValue has already been allocated.
I wonder how can I use memcpy or strcpy for this purpose.
If it is impossible, I’d like to know other ways to do it.
Your question isn’t too clear but if you want to set the mutable string’s value to the other string then do this:
If you want to append the value then do this:
Both of these assume that at some point you did:
Have a look at the docs for NSMutableString. There are lots of methods for updating its value.