aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index 46fad33..85f3261 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -72,6 +72,12 @@ extern void strbuf_append_number(strbuf_t *s, double number);
72static void strbuf_append_char(strbuf_t *s, const char c); 72static void strbuf_append_char(strbuf_t *s, const char c);
73static void strbuf_ensure_null(strbuf_t *s); 73static void strbuf_ensure_null(strbuf_t *s);
74 74
75/* Reset string for before use */
76static inline void strbuf_reset(strbuf_t *s)
77{
78 s->length = 0;
79}
80
75/* Return bytes remaining in the string buffer 81/* Return bytes remaining in the string buffer
76 * Ensure there is space for a NULL terminator. */ 82 * Ensure there is space for a NULL terminator. */
77static inline int strbuf_empty_length(strbuf_t *s) 83static inline int strbuf_empty_length(strbuf_t *s)