How can I create a sub string from a char buffer based on the last position of a charcter in the string?
for Example I have a char buffer :
char curdir[ 255]; which is "C:\Program Files\My App\new\ blah"
I want to return a string from the last index of "\".
which would leave a substring of " C:\Program Files\My App\new"