Function capstone_sys::cs_insn_name [] [src]

pub unsafe extern fn cs_insn_name(handle: csh, insn_id: c_uint) -> *const c_char

Return friendly name of an instruction 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 the engine does not store instruction name.

handle: handle returned by cs_open() insn_id: instruction id

return: string name of the instruction, or NULL if insn_id is invalid.