aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-19 22:27:43 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-19 22:27:43 +0100
commit6d320b0386aa4d7c6bfe2d6fce3d68e227752bed (patch)
tree920b323f7e84bd9c5b6454f44d6f29918fcf9c7d /strbuf.h
parentFurther changes. (diff)
downloadcalp-6d320b0386aa4d7c6bfe2d6fce3d68e227752bed.tar.gz
calp-6d320b0386aa4d7c6bfe2d6fce3d68e227752bed.tar.xz
Further C++ improvements, maybe doesn't segfault now.
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;
+ }
};
/*