X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fpath.h;h=5d0a5d353d4d465954b11ed9f7ff57a36aca5a5a;hp=210b5d93d14c88bf136d07f25a5ddc78c7fc89e2;hb=7818b5ecb0a83126374896d7e678ca8aff9a1599;hpb=6c958cd2d8806063580f836e4c3d486832af9635 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;