From: Mikko Rasa Date: Fri, 6 Jul 2012 20:47:38 +0000 (+0300) Subject: Add Path::c_str() method X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=7818b5ecb0a83126374896d7e678ca8aff9a1599 Add Path::c_str() method --- diff --git a/source/fs/path.h b/source/fs/path.h index 210b5d9..5d0a5d3 100644 --- a/source/fs/path.h +++ b/source/fs/path.h @@ -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;