Hi,
If anyone can help it would be greatly appreciated. I have a function which creates a StrBuf called _buf. Now I want to send this _buf into another member function which only accepts char *pointer ie. character pointer. Here is the member function:
Note: _str is a private variable.Code:void Token::setStr(const char* str) {_str = (char*)str;}
What must I do to _buf so that I can send it as a parameter for the setStr function.
Can I do something like:
char *temp[] = _buf;
char *temppointer = temp;
then send in tempointer to the setStr funtion? ie. Object.setStr(&temppointer)
Thanks if anyone can offer some guidance and assistance.