Suppose I have this function:
std::string Func1(std::string myString) { //do some string processing std::string newString = Func2(myString) return
You could convert it into a c string using c_str() like so:
c_str()
$_streq(myStr.c_str(), "foo")