Flag: Tornado! Hurricane!

OpenRCE IDA SDK >> tag_remove

tag_remove
Category: Miscellaneous

idaman int ida_export
tag_remove(const char *instr, char *buf, int bufsize)
Remove any colour tags from *instr, and store the result in *buf, limited by bufsize. Supplying the same pointer for *instr and *buf is also supported, in which case bufsize is 0. This function is defined in lines.hpp.

Examples:
#include <ua.hpp> // For ua_ functions
#include <lines.hpp>

// Get the entry point address
ea_t addr = inf.startIP;

// Fill cmd with information about the instruction at the entry point
ua_ana0(addr);

// Loop through each operand (until one of o_void type is reached), displaying the operand text.
for (int i = 0; cmd.Operands[i].type != o_void; i++)
{
    char op[MAXSTR];
    ua_outop(addr, op, sizeof(op) - 1, i);

    // Strip the colour tags off
    tag_remove(op, op, 0);
    msg("Operand %d: %s\n", i, op);
}


Related: call_system, del_item_color, ea2str, getdspace, get_input_file_path, get_item_color, get_nice_colored_name, idadir, next_not_tail(), open_url, str2ea, tag_remove

Note: You must be logged in to add notes to the IDA SDK reference manual.

There are 29,881 total registered users.


Recently Created Topics
PaiMei stalker modul...
May/19
Attach to program us...
May/13
IDA PRO how to make ...
May/12
FACT: OpenRCE is dead.
May/08
Int 3 anti debug?
May/05
help needed - Beginn...
May/03
Attaching IDA Pro to...
Apr/27
File type
Apr/21
Debugging iphone app...
Apr/15
Attaching
Apr/12


Recent Forum Posts
Ollydbg 2.0 - Plugin...
openrce...
IDA PRO how to make ...
codeinject
FACT: OpenRCE is dead.
codeinject
IDA Resource Viewer ...
r2x64
FACT: OpenRCE is dead.
djnemo
FACT: OpenRCE is dead.
codeinject
FACT: OpenRCE is dead.
pedram
help needed - Beginn...
araujo
Attaching IDA Pro to...
codeinject
Int 3 anti debug?
codeinject


Recent Blog Entries
sweetyss
May/18
Adam Wainwright continues t...

lowpriority
Apr/13
OllyMigrate Plugin for Olly...

everdox
Mar/08
2 anti-trace mechanisms spe...

everdox
Mar/07
Advanced debugging techniques

everdox
Mar/06
Branch tracing and LBR acce...

More ...


Recent Blog Comments
clarisonic on:
Apr/03
New version of Ollydbg!

clarisonic on:
Apr/03
New version of Ollydbg!

trackerx90 on:
Mar/04
SuppressDebugMsg As Anti-De...

coachfactory on:
Feb/25
Portable Executable Format ...

coachfactory on:
Feb/25
A new Anti-Olly trick.

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit