aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-02-10 15:25:53 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-02-10 15:25:53 +0100
commit1ac2cebab221b2ccc8f167f9ceaa9098fa77efe0 (patch)
treecd9225a2aca79517ee8707f9a6a8d3d5ffb4d49d /strbuf.h
parentAdd push_strbuf function. (diff)
downloadcalp-1ac2cebab221b2ccc8f167f9ceaa9098fa77efe0.tar.gz
calp-1ac2cebab221b2ccc8f167f9ceaa9098fa77efe0.tar.xz
Improve strbuf.
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/strbuf.h b/strbuf.h
index e6f59896..62c0ee08 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -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);