SV * array_out; //the code array_out = newSVpv( (char *) z, m * 8 ); RETVAL = array_out; OUTPUT RETVAL