ocs_textbuf_ext_get_written
n = ocs_textbuf_ext_get_written(ptbuf, idx);
for (idx = 0; (n = ocs_textbuf_ext_get_written(&textbuf, idx)) > 0; idx++) {
ocs_textbuf_ext_get_written(&textbuf, idx))) {
for (idx = 0; (n = ocs_textbuf_ext_get_written(textbuf, idx)) >= 0; idx++) {
extern int32_t ocs_textbuf_ext_get_written(ocs_textbuf_t *textbuf, uint32_t idx);