Last active
September 17, 2018 20:55
-
-
Save flatcap/e7b597b8e7829983ed76f1737751c46b to your computer and use it in GitHub Desktop.
dirname
This file contains hidden or 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
char *mutt_file_dirname(const char *path) | |
{ | |
char *copy = mutt_str_strdup(path); | |
char *dir = dirname(copy); | |
if (dir != copy) | |
{ | |
FREE(©); | |
dir = strdup(dir); | |
} | |
return dir; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment