textbuf_memcpy
textbuf_memcpy(itb, str, strlen(str));
static void textbuf_memcpy(idm_textbuf_t *itb, void *mem, int mem_len);