I'm not very good at C, and I always get stuck on simple string manipulation tasks (that's why I love Perl!).
I have a string that contains a file path like "/Volumes/Media/Music/Arcade Fire/Black Mirror.aac". I need to extract the drive name ("Media" or preferably "/Volumes/Media") from that path.
Any help would be greatly appreciated, just as I try to return the favor on the Perl questions!
- Jim