In fun1() I am getting a string and I need to pass this string data to a function fun2() which takes argument char *
function2 prototype is as below
void fun2(char *p);
I am calling fun2 from fun1 as below
void fun1()
{
fun2((char *)str.c_str());
}
Is there any chance from the conversion from const char * to char * does make any potential issues