Function capstone_sys::cs_reg_name
source · pub unsafe extern "C" fn cs_reg_name(
handle: csh,
reg_id: c_uint
) -> *const c_char
Expand description
Return friendly name of register in a string. Find the instruction id from header file of corresponding architecture (arm.h for ARM, x86.h for X86, …)
WARN: when in ‘diet’ mode, this API is irrelevant because engine does not store register name.
@handle: handle returned by cs_open() @reg_id: register id
@return: string name of the register, or NULL if @reg_id is invalid.