Code

utils strbuf: Added sdb_strbuf_skip().
[sysdb.git] / src / include / utils / strbuf.h
index ebbd9e3afff3dcc4bf143afa6019114c7cb4038f..af4a9ccd0251326386bb5ed2d946f6d5b55ecf66 100644 (file)
@@ -136,6 +136,13 @@ sdb_strbuf_read(sdb_strbuf_t *strbuf, int fd, size_t n);
 ssize_t
 sdb_strbuf_chomp(sdb_strbuf_t *strbuf);
 
+/*
+ * sdb_strbuf_skip:
+ * Removes the first 'n' bytes from the buffer.
+ */
+void
+sdb_strbuf_skip(sdb_strbuf_t *strbuf, size_t n);
+
 /*
  * sdb_strbuf_string:
  * Returns the content of the string buffer. The caller may not modify the