I'm trying to copy a string to buffer for further processing. I used the instruction
char *buf = line.c_str();
but buf type should be const char*, However If I'm going to use
const char *buf = line.c_str();
I'll face another problem as I'm using strtok_s function for processing the buf. this function expecting char * arg. rather than const char*.
Is there another function or a way to copy this line to char * ??