diff options
Diffstat (limited to 'gdb/common/pathstuff.c')
-rw-r--r-- | gdb/common/pathstuff.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/common/pathstuff.c b/gdb/common/pathstuff.c index 02f6e44..fc574dc 100644 --- a/gdb/common/pathstuff.c +++ b/gdb/common/pathstuff.c @@ -140,3 +140,17 @@ gdb_abspath (const char *path) ? "" : SLASH_STRING, path, (char *) NULL)); } + +/* See common/pathstuff.h. */ + +bool +contains_dir_separator (const char *path) +{ + for (; *path != '\0'; path++) + { + if (IS_DIR_SEPARATOR (*path)) + return true; + } + + return false; +} |