]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/path.h
Add Path::c_str() method
[libs/core.git] / source / fs / path.h
index 210b5d93d14c88bf136d07f25a5ddc78c7fc89e2..5d0a5d353d4d465954b11ed9f7ff57a36aca5a5a 100644 (file)
@@ -68,6 +68,9 @@ public:
        /// Returns the path as a string.
        const std::string &str() const { return path; }
 
+       /// Returns the path as a pointer to a null-terminated string.
+       const char *c_str() const { return path.c_str(); }
+
        /// Returns the number of components in the path.
        unsigned size() const;