aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index 04457c0d..38a45b09 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -75,6 +75,10 @@ struct strbuf {
std::string to_string() {
return std::string (this->mem);
}
+
+ char* c_str() {
+ return this->mem;
+ }
};
/*