Code

strbuf utils: Added sdb_strbuf_clear().
[sysdb.git] / src / include / utils / strbuf.h
index 900a4530511020ae9c5d8374b065c943922c23ad..96b4f86bee3aa8937899a9af08314f9fa5866860 100644 (file)
@@ -144,6 +144,13 @@ sdb_strbuf_chomp(sdb_strbuf_t *strbuf);
 void
 sdb_strbuf_skip(sdb_strbuf_t *strbuf, size_t offset, size_t n);
 
+/*
+ * sdb_strbuf_clear:
+ * Clear the buffer but do not deallocate memory.
+ */
+void
+sdb_strbuf_clear(sdb_strbuf_t *strbuf);
+
 /*
  * sdb_strbuf_string:
  * Returns the content of the string buffer. The caller may not modify the