def decorate_c_array_data (hexdata: str,
                           var_name: str,
                           var_type: str,
                           newline_value: str):
    """
    Place @hexdata into a valid C array named @var_name of C type @var_type.
    """
    ret = var_type + " " + var_name + "[] = {" + newline_value
    ret += hexdata + newline_value
    ret += "};" + newline_value
    return ret