Created
June 7, 2013 23:00
-
-
Save blaquee/5733003 to your computer and use it in GitHub Desktop.
Strip Path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// strip filename from path | |
std::string long_path(link_path); | |
size_t pos = long_path.find_last_of("/\\"); | |
std::string relative_path = long_path.substr(0,pos); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment