C++ to C: Strings

bconnor's Avatar, Join Date: Apr 2006
Newbie Member
string s = "we";
string s2 = "I";
s.replace( 0, s2.length(), s2 );
cout << s << endl;

There isnt a simple way to do something like this in C, is there?
coderzone's Avatar, Join Date: Jul 2004
Team Leader
What do you mean by C. Do you mean with the char array?