Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
|
inlinestatic |
Definition at line 334 of file strbuf.c.
References rz_mem_dup(), sb, and strdup().
Referenced by rz_strbuf_drain(), and rz_strbuf_drain_nofree().
Definition at line 222 of file strbuf.c.
References rz_return_val_if_fail, rz_strbuf_append_n(), s, and sb.
Referenced by _6502_analysis_esil_update_flags(), _6502_op(), __draw_menu(), __draw_modal(), __esil_step_range_cb(), __generic_io_dest(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), argv_get_help(), base_type_to_format_no_unfold(), base_type_to_format_unfold(), callable_as_string(), cil_dis(), clear_flags(), close_optionals(), cmd_pxr(), construct_reloc_name(), dex_resolve_proto_id(), diff_unified_lines_hl(), disassemble(), do_handle_ts_unescape_arg(), do_print_child_help(), es_sign_n_64(), esil_branch_check_mask(), esil_branch_compare(), esil_branch_compare_single(), esil_call(), esil_callx(), fill_args(), fill_children_chars(), fill_colored_args(), fill_modes_children_chars(), fill_usage_strbuf(), fill_wrapped_comment(), flirt_pat_append_prelude(), flirt_pat_write_line(), format_cmd_kv(), gb_analysis_add_sp(), gb_analysis_esil_ret(), gb_analysis_load_hl(), gb_analysis_mov_hl_sp(), gb_analysis_mov_ime(), gb_analysis_xoaasc_imm(), generic_array_obj_to_string(), hex_disasm_with_templates(), il_op_effect_resolve(), il_op_pure_resolve(), il_opdmp_blk(), il_opdmp_bool_false(), il_opdmp_bool_true(), il_opdmp_cast(), il_opdmp_let(), il_opdmp_load(), il_opdmp_loadw(), il_opdmp_seq(), il_opdmp_seq_inner(), il_opdmp_set(), il_opdmp_store(), il_opdmp_storew(), lang_byte_array_asm(), lang_byte_array_bash(), lang_byte_array_c_cpp(), lang_byte_array_golang(), lang_byte_array_java(), lang_byte_array_kotlin(), lang_byte_array_nodejs(), lang_byte_array_objective_c_cpp(), lang_byte_array_rizin(), lua53_disasm(), lua54_disasm(), mnemonics(), opex(), opex64(), out_printf(), parse_function(), parse_simple_type(), parse_type(), parsed_args_iterateargs(), pdb_types_print_standard(), pj_raw(), print_byte(), print_cursor_l(), print_cursor_r(), prompt_add_file(), prompt_add_offset(), prompt_add_section(), read_string_val(), replace_directives_for(), replace_lines(), rz_analysis_cc_get(), rz_analysis_data_to_string(), rz_analysis_fcn_format_sig(), rz_analysis_var_get_constraints_readable(), rz_analysis_var_global_get_constraints_readable(), rz_arm_cs_analysis_op_32_esil(), rz_arm_cs_analysis_op_64_esil(), rz_asm_mdisassemble(), rz_bin_java_class_as_source_code(), rz_cmd_parsed_args_execstr(), rz_cons_echo(), rz_cons_grepbuf(), rz_cons_html_filter(), rz_core_analysis_all_vars_display(), rz_core_analysis_il_step_with_events(), rz_core_analysis_var_display(), rz_core_assembly_of_hex(), rz_core_bin_method_flags_str(), rz_core_bin_pdb_gvars_as_string(), rz_core_bin_relocs_print(), rz_core_print_hexdump_byline_str(), rz_core_print_string_c_cpp(), rz_core_types_as_c_all(), rz_core_types_enum_as_c_all(), rz_core_types_struct_as_c_all(), rz_core_types_typedef_as_c_all(), rz_core_types_union_as_c_all(), rz_graph_drawable_to_dot(), rz_il_event_stringify(), rz_pkcs7_cms_to_string(), rz_print_colorize_asm_str(), rz_print_hexdiff_str(), rz_print_hexdump_str(), rz_pseudo_convert(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_str_array_join(), rz_str_format_msvc_argv(), rz_str_list_join(), rz_str_repeat(), rz_str_stringify_raw_buffer(), rz_str_version(), rz_strbuf_vappendf(), rz_table_tocsv(), rz_table_tosimplestring(), rz_table_visual_list(), rz_type_format_10bytes(), rz_type_format_byte(), rz_type_format_char(), rz_type_format_data_internal(), rz_type_format_decchar(), rz_type_format_double(), rz_type_format_float(), rz_type_format_hex(), rz_type_format_hexflag(), rz_type_format_hexpairs(), rz_type_format_int(), rz_type_format_nulltermstring(), rz_type_format_nulltermwidestring(), rz_type_format_num(), rz_type_format_octal(), rz_type_format_quadword(), rz_type_format_string(), rz_type_format_time(), rz_type_format_u128(), rz_type_format_uleb(), rz_type_format_word(), sh_op_param_to_str(), strbuf_append_calc(), strings_print(), type_as_pretty_string(), type_decl_as_pretty_string(), type_to_format(), type_to_format_pair(), and update_flags().
Definition at line 229 of file strbuf.c.
References malloc(), memcpy(), p, realloc(), RZ_FREE, rz_return_val_if_fail, s, and sb.
Referenced by __parse_string_on_cursor(), dex_resolve_proto_id(), diff_unified_append_data(), diff_unified_lines_hl(), hex_disasm_with_templates(), read_to_strbuf(), replace_lines(), rz_buf_get_nstring(), rz_cons_html_filter(), rz_print_colorize_asm_str(), rz_pseudo_convert(), rz_str_format_msvc_argv(), rz_strbuf_append(), and set_attr().
Definition at line 279 of file strbuf.c.
References rz_return_val_if_fail, rz_strbuf_vappendf(), and sb.
Definition at line 48 of file strbuf.c.
References dst, free(), malloc(), memcpy(), p, RZ_FREE, rz_return_val_if_fail, and src.
Referenced by disassemble(), and rz_analysis_op_copy().
Definition at line 342 of file strbuf.c.
References drain(), free(), NULL, rz_return_val_if_fail, and sb.
Referenced by __config_toggle_cb(), __config_value_cb(), __op_refs(), __open_menu_cb(), __update_help(), __update_menu_contents(), argv_get_help(), avr_op(), cmd_print_fromage(), cmd_pxr(), construct_reloc_name(), dex_resolve_proto_id(), do_handle_ts_unescape_arg(), ds_build_op_str(), gdb_to_rz_profile(), group_get_help(), java_field_access_flags_readable(), java_method_access_flags_readable(), mnemonics(), parse_simple_type(), read_string_val(), replace_directives_for(), rz_analysis_cc_get(), rz_analysis_data_to_string(), rz_analysis_fcn_format_sig(), rz_asm_mdisassemble(), rz_asn1_print_hexdump_padded(), rz_asn1_to_string(), rz_axml_decode(), rz_base_type_as_format(), rz_bin_dex_access_flags_readable(), rz_bin_java_class_access_flags_readable(), rz_buf_get_nstring(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_get_help_json(), rz_cmd_help_search_handler(), rz_cmd_parsed_args_argstr(), rz_cmd_parsed_args_execstr(), rz_cmd_shell_mkdir_handler(), rz_cons_echo(), rz_cons_grepbuf(), rz_cons_html_filter(), rz_core_analysis_all_vars_display(), rz_core_analysis_hasrefs_to_depth(), rz_core_analysis_il_vm_status(), rz_core_analysis_var_display(), rz_core_assembly_of_hex(), rz_core_bin_method_flags_str(), rz_core_bin_relocs_print(), rz_core_disasm_instruction(), rz_core_esil_of_assembly(), rz_core_esil_of_hex(), rz_core_hex_of_assembly(), rz_core_print_hexdump_byline_str(), rz_core_print_string_c_cpp(), rz_core_types_as_c_all(), rz_core_types_enum_as_c_all(), rz_core_types_struct_as_c_all(), rz_core_types_typedef_as_c_all(), rz_core_types_union_as_c_all(), rz_core_visual_analysis(), rz_core_visual_analysis_refresh(), rz_core_visual_view_rop(), rz_core_yank_as_string(), rz_diff_unified_text(), rz_list_to_str(), rz_load_panels_layout(), rz_parse_pseudocode(), rz_pkcs7_cms_to_string(), rz_print_hexdiff_str(), rz_print_hexdump_str(), rz_protobuf_decode(), rz_run_get_environ_profile(), rz_str_array_join(), rz_str_list_join(), rz_str_repeat(), rz_str_trim_lines(), rz_str_version(), rz_str_widget_list(), rz_table_tocsv(), rz_table_tofancystring(), rz_table_tosimplestring(), rz_table_visual_list(), rz_type_as_format(), rz_type_as_format_pair(), rz_type_callable_as_string(), rz_type_callable_ptr_as_string(), rz_type_format_data(), rz_x509_crl_to_string(), sh_op_param_to_str(), sh_op_to_str(), show_config_options(), spp_eval_str(), strings_print(), type_as_pretty_string(), ut64_to_hex(), and wasm_dis().
Definition at line 349 of file strbuf.c.
References drain(), NULL, rz_return_val_if_fail, and sb.
Referenced by fill_children_chars(), format_cmd_kv(), parse_enum_type(), parse_struct_member(), parse_typedef(), pj_drain(), replace_lines(), rz_analysis_var_get_constraints_readable(), rz_analysis_var_global_get_constraints_readable(), rz_core_bin_field_build_flag_name(), rz_core_bin_method_build_flag_name(), rz_graph_drawable_to_dot(), rz_il_validate_effect(), rz_il_validate_pure(), rz_print_addr(), rz_print_byte(), rz_print_section_str(), rz_pseudo_convert(), rz_str_format_msvc_argv(), rz_str_stringify_raw_buffer(), rz_type_parse_string_declaration_single(), rz_type_parse_string_single(), set_prompt(), and type_parse_string().
Definition at line 16 of file strbuf.c.
References RzStrBuf::len, rz_return_val_if_fail, rz_strbuf_get(), and sb.
Definition at line 365 of file strbuf.c.
References NULL, RZ_FREE, and sb.
Referenced by analop(), analysis_mask_avr(), calc_padding_len(), cil_analyze_op(), count_newlines(), database_load(), diff_unified_append_data(), diff_unified_json_data(), diff_unified_lines_hl(), disassemble(), ds_print_cmt_il(), fcnjoin(), fill_children_chars(), get_atomic_type(), get_callable_type(), get_enum_type(), get_struct_type(), get_typedef_type(), get_union_type(), get_word_from_canvas(), handle_skip_next_instruction(), mips_op(), parse_function(), parse_function_args_and_vars(), parse_typedef(), pj_free(), print_and_check_il(), runword(), rz_analysis_cc_del(), rz_analysis_cc_set_error(), rz_analysis_cc_set_self(), rz_analysis_esil_free(), rz_analysis_op_fini(), rz_asm_op_fini(), rz_core_analysis_il_vm_status(), rz_core_print_disasm(), rz_il_validate_effect(), rz_il_validate_pure(), rz_serialize_analysis_blocks_save(), rz_serialize_analysis_functions_save(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_sign_flirt_write_string_pattern_to_buffer(), rz_strbuf_free(), rz_subprocess_err(), rz_subprocess_free(), rz_subprocess_out(), rz_subprocess_stdout_read(), rz_subprocess_stdout_readline(), rz_subprocess_wait(), rz_test_test_database_load_fuzz(), save_atomic_type(), save_callable(), save_enum(), save_struct(), save_typedef(), save_union(), sdb_save_dwarf_function(), set_attr(), update_stat_for_op(), and ut64join().
Definition at line 358 of file strbuf.c.
References free(), rz_strbuf_fini(), and sb.
Referenced by __config_toggle_cb(), __config_value_cb(), __esil_step_range_cb(), __init_menu_color_settings_layout(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), __panels_refresh(), __parse_string_on_cursor(), __update_help_title(), __update_modal(), __update_panel_title(), argv_get_help(), c_parser_state_free(), c_parser_state_free_keep_ht(), c_parser_state_reset_keep_ht(), cmd_pxr(), core_analysis_bytes_standard(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), dex_resolve_proto_id(), ds_build_op_str(), fill_usage_strbuf(), gdb_to_rz_profile(), generic_array_obj_to_string(), INST_HANDLER(), main(), mk_reg_str(), parse_localvar(), pdb_types_print_standard(), print_rop(), read_string_val(), replace_directives_for(), rz_analysis_data_to_string(), rz_asm_token_string_free(), rz_axml_decode(), rz_buf_get_nstring(), rz_cmd_javac_handler(), rz_cmd_javaf_handler(), rz_cmd_javai_handler(), rz_cmd_javam_handler(), rz_cmd_javap_handler(), rz_cmd_javas_handler(), rz_cons_canvas_box(), rz_cons_grepbuf(), rz_core_analysis_il_step_with_events(), rz_core_analysis_il_vm_status(), rz_core_assembly_of_hex(), rz_core_bin_pdb_gvars_as_string(), rz_core_bin_sections_mapping_print(), rz_core_disasm_pdi_with_buf(), rz_core_esil_of_assembly(), rz_core_esil_of_hex(), rz_core_hex_of_assembly(), rz_core_print_disasm_all(), rz_core_visual_bit_editor(), rz_core_visual_esil(), rz_core_yank_as_string(), rz_debug_thread_list(), rz_diff_unified_text(), rz_parse_pseudocode(), rz_print_colorize_asm_str(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_table_visual_list(), rz_type_as_format_pair(), rz_type_callable_as_string(), rz_type_callable_ptr_as_string(), spp_run_str(), type_as_pretty_string(), and visual_help().
Definition at line 321 of file strbuf.c.
References NULL, rz_return_val_if_fail, and sb.
Referenced by __config_toggle_cb(), __config_value_cb(), __core_cmd_search_asm_byteswap(), __esil_step_range_cb(), __init_menu_color_settings_layout(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), __isInvalid(), __panels_refresh(), __parse_string_on_cursor(), __update_help_title(), __update_modal(), __update_panel_title(), assemble(), avr_op_analyze(), check_token_coverage(), core_analysis_bytes_standard(), count_newlines(), database_load(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), diff_unified_append_data(), diff_unified_json_data(), diff_unified_lines_hl(), disassemble(), do_assemble(), do_disassemble(), do_ref_search(), ds_atabs_option(), ds_print_cmt_il(), extract_arg(), fcnjoin(), fill_usage_strbuf(), flirt_pat_parse_line(), flirt_pat_write_line(), gbAsm(), generic_array_obj_to_string(), get_src_regname(), get_word_from_canvas(), hex_disasm_with_templates(), INST_HANDLER(), main(), mk_reg_str(), parse_function(), parse_function_args_and_vars(), parse_localvar(), parseHeap(), pdb_types_print_standard(), pj_string(), print_and_check_il(), print_rop(), run_basic_block_analysis(), rz_analysis_esil_trace_op(), rz_analysis_op_to_esil_string(), rz_asm_assemble(), rz_asm_massemble(), rz_asm_mdisassemble(), rz_asm_op_get_asm(), rz_asm_op_get_buf(), rz_asm_op_get_hex(), rz_asm_pseudo_intN(), rz_asm_rasm_assemble(), rz_asm_token_string_clone(), rz_asm_tokenize_asm_regex(), rz_cmd_javac_handler(), rz_cmd_javaf_handler(), rz_cmd_javai_handler(), rz_cmd_javam_handler(), rz_cmd_javap_handler(), rz_cmd_javas_handler(), rz_cmd_print(), rz_cons_canvas_box(), rz_core_analysis_il_step_with_events(), rz_core_analysis_il_vm_status(), rz_core_analysis_op(), rz_core_asm_back_disassemble(), rz_core_asm_strsearch(), rz_core_bin_pdb_gvars_as_string(), rz_core_bin_sections_mapping_print(), rz_core_cmp_disasm(), rz_core_disasm_instruction(), rz_core_disasm_pde(), rz_core_disasm_pdi_with_buf(), rz_core_op_str(), rz_core_print_disasm_all(), rz_core_visual_bit_editor(), rz_core_visual_esil(), rz_debug_thread_list(), rz_print_colorize_asm_str(), rz_serialize_analysis_blocks_save(), rz_serialize_analysis_functions_save(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_strbuf_equals(), rz_strbuf_set(), rz_strbuf_slice(), rz_subprocess_stdout_readline(), rz_table_tofancystring(), rz_table_tosimplestring(), rz_test_test_database_load_fuzz(), save_enum(), save_struct(), save_union(), sdb_save_dwarf_function(), set_attr(), showanalysis(), spp_run_str(), tokenize_asm_generic(), update_stat_for_op(), ut64join(), and visual_help().
Definition at line 326 of file strbuf.c.
References len, NULL, rz_return_val_if_fail, and sb.
Referenced by rz_cons_grepbuf(), rz_subprocess_err(), and rz_subprocess_out().
Definition at line 33 of file strbuf.c.
References memset(), rz_return_if_fail, and sb.
Referenced by _6502_op(), analop_esil(), analysis_mask_avr(), calc_padding_len(), cil_dis(), count_newlines(), database_load(), diff_unified_append_data(), diff_unified_json_data(), diff_unified_lines_hl(), ds_print_cmt_il(), fcnjoin(), fill_children_chars(), format_cmd_kv(), get_word_from_canvas(), handle_skip_next_instruction(), hex_disasm_with_templates(), main(), opex(), opex64(), parse_enum_type(), parse_function(), parse_function_args_and_vars(), parse_struct_member(), parse_typedef(), pj_new(), print_and_check_il(), replace_lines(), rz_analysis_esil_new(), rz_analysis_op_copy(), rz_analysis_var_get_constraints_readable(), rz_analysis_var_global_get_constraints_readable(), rz_arm_cs_analysis_op_32_esil(), rz_arm_cs_analysis_op_64_esil(), rz_asm_rasm_assemble(), rz_core_print_disasm(), rz_graph_drawable_to_dot(), rz_il_validate_effect(), rz_il_validate_pure(), rz_print_addr(), rz_print_byte(), rz_print_section_str(), rz_serialize_analysis_functions_save(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_sign_flirt_write_string_pattern_to_buffer(), rz_str_format_msvc_argv(), rz_str_stringify_raw_buffer(), rz_strbuf_initf(), rz_strbuf_set(), rz_subprocess_start_opt(), rz_subprocess_stdout_read(), rz_subprocess_stdout_readline(), rz_subprocess_wait(), rz_test_test_database_load_fuzz(), save_atomic_type(), save_callable(), save_enum(), save_struct(), save_typedef(), save_union(), sdb_save_dwarf_function(), set_attr(), set_prompt(), spp_eval_str(), update_stat_for_op(), and ut64join().
Definition at line 38 of file strbuf.c.
References NULL, r, rz_return_val_if_fail, rz_strbuf_init(), rz_strbuf_vsetf(), and sb.
Referenced by get_atomic_type(), get_callable_type(), get_enum_type(), get_struct_type(), get_typedef_type(), get_union_type(), rz_analysis_cc_del(), rz_analysis_cc_set_error(), rz_analysis_cc_set_self(), rz_core_bin_field_build_flag_name(), and rz_core_bin_method_build_flag_name().
Definition at line 24 of file strbuf.c.
References sb.
Referenced by fill_children_chars(), get_src_regname(), rz_core_bin_relocs_print(), rz_il_validate_effect(), rz_il_validate_pure(), and tokenize_asm_generic().
Definition at line 28 of file strbuf.c.
References rz_return_val_if_fail, and sb.
Referenced by __panels_refresh(), __strbuf_append_col_aligned(), __strbuf_append_col_aligned_fancy(), calc_padding_len(), count_newlines(), diff_unified_append_data(), diff_unified_json_data(), diff_unified_lines_hl(), ds_atabs_option(), fill_children_chars(), flirt_pat_parse_line(), flirt_pat_write_line(), rz_analysis_fcn_format_sig(), rz_asm_massemble(), rz_asm_op_get_hex(), rz_cons_grepbuf(), rz_core_analysis_il_vm_status(), rz_core_disasm_instruction(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_str_list_join(), rz_subprocess_stdout_readline(), show_config_options(), type_as_pretty_string(), and ut64_to_hex().
Definition at line 201 of file strbuf.c.
References free(), malloc(), memcpy(), rz_return_val_if_fail, rz_strbuf_set(), s, and sb.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), fill_children_chars(), rz_table_tofancystring(), and ut64_to_hex().
Definition at line 67 of file strbuf.c.
References len, memcpy(), realloc(), rz_return_val_if_fail, and sb.
Referenced by rz_analysis_data_to_string(), and rz_parse_pseudocode().
Definition at line 153 of file strbuf.c.
References len, NULL, rz_return_val_if_fail, rz_strbuf_get(), rz_strbuf_init(), rz_strbuf_setbin(), s, and sb.
Referenced by _6502_op(), _6502Disass(), __generic_io_dest(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), __panels_refresh(), analop_esil(), assemble_8051(), avr_op_analyze(), avr_unique(), construct_reloc_name(), dalvik_disassemble(), disassemble(), fill_children_chars(), gb_analysis_id(), gb_analysis_jmp_hl(), gb_analysis_load(), gb_analysis_load_hl(), gb_analysis_mov_scf(), gb_analysis_mov_sp_hl(), gb_analysis_store(), gb_analysis_store_hl(), gb_analysis_xor_ccf(), gb_analysis_xor_cpl(), gb_anop(), gbAsm(), hexagon_reverse_opcode(), i4004dis(), java_disassemble(), line_stringify(), mcs96_len(), parse(), parseHeap(), pj_reset(), rsp_op(), runword(), rz_analysis_op_hint(), rz_arm_cs_analysis_op_32_esil(), rz_arm_cs_analysis_op_64_esil(), rz_asm_disassemble(), rz_asm_op_set_asm(), rz_asm_pseudo_string(), rz_pseudo_convert(), rz_pyc_disasm(), rz_strbuf_new(), rz_strbuf_prepend(), rz_strbuf_vsetf(), set_invalid_op(), snesDisass(), spc700_disas(), strbuf_rev_append_char(), strbuf_rev_prepend_char(), update_stat_for_op(), and wasm_dis().
Definition at line 85 of file strbuf.c.
References malloc(), memcpy(), RZ_FREE, rz_return_val_if_fail, s, and sb.
Referenced by _write_asm(), assemble(), assemble_8051(), binutils_assemble(), dalvik_assemble(), java_assemble(), rz_asm_op_set_buf(), rz_asm_op_set_hex(), rz_luac_asm(), rz_strbuf_set(), and update_stat_for_op().
Definition at line 167 of file strbuf.c.
References rz_return_val_if_fail, rz_strbuf_vsetf(), and sb.
Cuts the current string into a substring.
Only to be used on strings, not binary buffers. If len > sb->len - from
, then the resulting size will be truncated appropriately.
Definition at line 122 of file strbuf.c.
References from, len, RZ_MIN, rz_return_val_if_fail, rz_strbuf_get(), s, and sb.
Referenced by __update_panel_title(), flirt_pat_write_line(), parse_function_args_and_vars(), rz_analysis_fcn_format_sig(), sdb_save_dwarf_function(), and type_as_pretty_string().
Definition at line 290 of file strbuf.c.
References free(), malloc(), p, rz_return_val_if_fail, rz_strbuf_append(), sb, and vsnprintf.
Referenced by parser_debug(), parser_error(), parser_warning(), and rz_strbuf_appendf().
Definition at line 177 of file strbuf.c.
References done, free(), malloc(), NULL, p, rz_return_val_if_fail, rz_strbuf_set(), sb, and vsnprintf.
Referenced by rz_strbuf_initf(), and rz_strbuf_setf().