Oct 26, 2010 at 12:06pm
I have some problem with this code :(
This is my code:
1 2 3
|
wchar_t fullpath[0x128];
fullpath = L"/card/music/song.mp3";
wchar_t * pos = wstrrchr(fullpath,'/');
|
Result:
pos+1 = song.mp3
My problem, how to get extract out the path only?
I mean this
/card/music/
i tried many way, but still no luck.
Last edited on Oct 26, 2010 at 12:07pm
Oct 26, 2010 at 1:34pm
A quick way would be to copy the string (if you need the original) and put a '\0' at pos+1.