ocs_textbuf_init
ocs_textbuf_init(ocs, &txtbuf, buf, sizeof(buf));
extern int32_t ocs_textbuf_init(ocs_t *ocs, ocs_textbuf_t *textbuf, void *buffer, uint32_t length);