#include <ctype.h>
#include <assert.h>
+#ifndef STRINGBUF_H
#include "stringbuf.h"
+#endif
#ifdef USE_UTF8
#include "utf8.h"
#endif
void sb_append_len(stringbuf *sb, const char *str, int len)
{
- int utf8_strlen(const char *str, int bytelen);
if (sb->remaining < len + 1) {
sb_realloc(sb, sb->last + len + 1 + SB_INCREMENT);
}