]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/avstring.h
Merge commit '44e065d56c87d6a9d0effccec5f31517f72924ec'
[ffmpeg] / libavutil / avstring.h
index f73d6e742069b74763b577c4bb1a3902e8b23af5..d7af9ec7c3d7d93c07157ad862adf26a52ca705e 100644 (file)
@@ -202,6 +202,22 @@ int av_strcasecmp(const char *a, const char *b);
  */
 int av_strncasecmp(const char *a, const char *b, size_t n);
 
+
+/**
+ * Thread safe basename.
+ * @param path the path, on DOS both \ and / are considered separators.
+ * @return pointer to the basename substring.
+ */
+const char *av_basename(const char *path);
+
+/**
+ * Thread safe dirname.
+ * @param path the path, on DOS both \ and / are considered separators.
+ * @return the path with the separator replaced by the string terminator or ".".
+ * @note the function may change the input string.
+ */
+const char *av_dirname(char *path);
+
 /**
  * @}
  */