diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-02-10 15:25:53 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-02-10 15:25:53 +0100 |
commit | 1ac2cebab221b2ccc8f167f9ceaa9098fa77efe0 (patch) | |
tree | cd9225a2aca79517ee8707f9a6a8d3d5ffb4d49d /strbuf.h | |
parent | Add push_strbuf function. (diff) | |
download | calp-1ac2cebab221b2ccc8f167f9ceaa9098fa77efe0.tar.gz calp-1ac2cebab221b2ccc8f167f9ceaa9098fa77efe0.tar.xz |
Improve strbuf.
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -66,11 +66,6 @@ int strbuf_append(strbuf* s, char c); int strbuf_cap(strbuf* s); /* - * Resets the seek for strbuf to 0. - */ -int strbuf_reset(strbuf* s); - -/* * Returns a pointer to character at index. Allows mutation of the * value pointed to by the return address. */ @@ -82,6 +77,11 @@ char* charat(strbuf* s, unsigned int idx); char* strbuf_cur(strbuf* s); /* + * Resets the seek for strbuf to 0. + */ +int strbuf_reset(strbuf* s); + +/* * Sets the length and seek ptr to 0, but doesn't touch the memmory. */ int strbuf_soft_reset(strbuf* s); |