Hello, I am a Java/VB developer that has suddenly been plunged into the C/C++ world, so I hope somebody can answer a question for me.
I have written some code that takes as a parameter an array of pchar:
A typical parameter would be:
in that format. What I would like to do is take the text between the single quotes, and assign that either to a string, or another pchar.
I have made some code, and it works - to a point, but it is very long and looks complicated, so is bad for maintenance. Also, it is probably error-prone.
Is there any string/pchar handling function in C/C++ that can perform this in a single operation?