text_len = strlen(text);
text_len = strlen(text)+1;
unsigned int irc_strip_ctrlcodes(char **bufp, const char *text) {    char *buf;    unsigned int text_len;        *bufp = NULL;        if(blankstr(text))        return 0;        text_len = strlen(text);        if(text_len < 2)        return 0;        buf = (char*)callocm(text_len+1, sizeof(char*));        xstrcpy(buf, text, text_len+1);        if(blankstr(strrtok(buf, ctrlcodes))) {        freem(buf);        return 0;    }        *bufp = buf;        return text_len+1;}