outbuf[0] = rc; outbuf[1] = '\0';
outbuf[0] = (char)rc; outbuf[1] = '\0';
PUBLIC int UCTransUniCharStr ARGS5(	char *, 	outbuf,	int,		buflen,	long,		unicode,	int,		charset_out,	int,		chk_single_flag){    int rc = -14, src = 0, ignore_err;    int UChndl_out;    int isdefault, trydefault = 0;    struct unimapdesc_str * repl;    CONST u16 * ut;    if (buflen < 2)	return -13;    if ((UChndl_out = LYCharSet_UC[charset_out].UChndl) < 0) {	if ((UChndl_out = default_UChndl) < 0)	    return -12;	isdefault = 1;    } else {	isdefault = UCInfo[UChndl_out].replacedesc.isdefault;	trydefault = UCInfo[UChndl_out].replacedesc.trydefault;    }    if (chk_single_flag) {	if (!isdefault) {	    ut = UCInfo[UChndl_out].unitable;	    if (ut != UC_current_unitable) {		src = UC_con_set_unimap(UChndl_out, 1);		if (src < 0) {		    return src;		}	    }	}	src = conv_uni_to_pc(unicode, isdefault);	if (src >= 32) {	    outbuf[0] = src; outbuf[1] = '\0';	    return 1;	}    }    repl = &(UCInfo[UChndl_out].replacedesc);    if (!isdefault) {	if (repl != UC_current_unitable_str)  {	    con_clear_unimap_str(0);	    ignore_err = UC_con_set_unimap_str(repl->entry_ct, repl->entries, 0);	    UC_current_unitable_str = repl;	}	rc = conv_uni_to_str(outbuf, buflen, unicode, 0);	if (rc >= 0)	    return (strlen(outbuf));    }    if (trydefault && chk_single_flag) {	src = conv_uni_to_pc(unicode, 1);	if (src >= 32) {	    outbuf[0] = src; outbuf[1] = '\0';	    return 1;	}    }    if (isdefault || trydefault) {	rc = conv_uni_to_str(outbuf, buflen, unicode, 1);	if (rc >= 0)	    return (strlen(outbuf));    }    if (rc == -4) {	if (!isdefault)	    rc = conv_uni_to_str(outbuf, buflen, 0xfffd, 0);	if ((rc == -4) && (isdefault || trydefault))	    rc = conv_uni_to_str(outbuf, buflen, 0xfffd, 1);	if (rc >= 0)	    return (strlen(outbuf));    }    if (chk_single_flag && src == -4) {	if (!isdefault)	    rc = conv_uni_to_pc(0xfffd, 0);	if ((rc == -4) && (isdefault || trydefault))	    rc = conv_uni_to_pc(0xfffd, 1);	if (rc >= 32) {	    outbuf[0] = rc; outbuf[1] = '\0';	    return 1;	}	return rc;    }    return -4;}