+/**
+ * resizable string buffer
+ *
+ * (c) 2017-2020 Steve Bennett <steveb@workware.net.au>
+ *
+ * See utf8.c for licence details.
+ */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifndef STRINGBUF_H
#define STRINGBUF_H
-
-/* (c) 2017 Workware Systems Pty Ltd -- All Rights Reserved */
-
+/**
+ * resizable string buffer
+ *
+ * (c) 2017-2020 Steve Bennett <steveb@workware.net.au>
+ *
+ * See utf8.c for licence details.
+ */
#ifdef __cplusplus
extern "C" {
#endif
stringbuf *sb_copy(stringbuf *sb);
/**
- * Returns the length of the buffer.
+ * Returns the byte length of the buffer.
*
* Returns 0 for both a NULL buffer and an empty buffer.
*/
}
/**
- * Inserts the given string *before* (zero-based) 'index' in the stringbuf.
+ * Inserts the given string *before* (zero-based) byte 'index' in the stringbuf.
* If index is past the end of the buffer, the string is appended,
* just like sb_append()
*/