diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-26 20:45:58 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-26 20:45:58 +0100 |
commit | 71cb8291d7dc27798c58e1d4fbb28ceee3f07532 (patch) | |
tree | 325beb656b40df536a623ad1c56cb089792aa54a /strbuf.h | |
parent | Simplify Makefiel. (diff) | |
download | calp-71cb8291d7dc27798c58e1d4fbb28ceee3f07532.tar.gz calp-71cb8291d7dc27798c58e1d4fbb28ceee3f07532.tar.xz |
Strbuf remove init_1, add strbuf_load.
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -23,14 +23,10 @@ typedef struct { } strbuf; /* - * Init strbuf to size of 0 - * Doesnt't call malloc. + * Init strbuf to size of 10 */ INIT_F(strbuf); -/* Constructor */ -INIT_F(strbuf, size_t len); - /* * Like realloc, but for strbuf */ @@ -108,4 +104,6 @@ FMT_F(strbuf); int SIZE(strbuf)(strbuf*); +int strbuf_load(strbuf* self, const char* str); + #endif /* STRBUF_H */ |