Add a new function child_path.
[deliverable/binutils-gdb.git] / gdb / common / pathstuff.h
index c264e7888402de4c9ac36e216552cd88b7ca7ed1..67072a40e733700f369c1284718dee37dbf9cc7d 100644 (file)
@@ -48,6 +48,12 @@ extern gdb::unique_xmalloc_ptr<char>
 
 extern gdb::unique_xmalloc_ptr<char> gdb_abspath (const char *path);
 
+/* If the path in CHILD is a child of the path in PARENT, return a
+   pointer to the first component in the CHILD's pathname below the
+   PARENT.  Otherwise, return NULL.  */
+
+extern const char *child_path (const char *parent, const char *child);
+
 /* Return whether PATH contains a directory separator character.  */
 
 extern bool contains_dir_separator (const char *path);
This page took 0.024039 seconds and 4 git commands to generate.