K
Kelvin Moss
Hi all,
I am trying to call a library API that accepts a char* as one of the
parameter. In a particular mode this API never modifies the char*
variable. I am usually dealing with const char* strings (C style
strings). Is it safe to cast the const char* to char* in this
particular mode, rather than duplicating the original const char*
everytime ?
Thanks ..
I am trying to call a library API that accepts a char* as one of the
parameter. In a particular mode this API never modifies the char*
variable. I am usually dealing with const char* strings (C style
strings). Is it safe to cast the const char* to char* in this
particular mode, rather than duplicating the original const char*
everytime ?
Thanks ..