Grabbing value of pointers
- by user1205956
In C++ I am making a static library where I must set two variables equal to the value of the objects sent in to the method.
This is what I have:
bool setTags(char *pStartTag, char *pEndTag) {
// Code to set the tags here.
return true;
}
Basically the calling function puts in two character arrays. I am required to do it this way so I cannot deviate on these ways. How do I set two variables equal to the whole character array that is passed through?