Flag: Tornado! Hurricane!

OpenRCE IDA SDK >> ewrite

ewrite
Category: I/O

idaman void ida_export
ewrite(FILE *fp, const void *buf, ssize_t size)
Write size bytes of *buf to the file represented by FILE pointer *fp. If the write operation fails, an error is displayed followed by exiting IDA.

Examples:
#include <kernwin.hpp> // For read_selection()
#include <bytes.hpp>   // For get_many_bytes()
#include <diskio.hpp>

char buf[MAXSTR];
ea_t saddr, eaddr;

// Create the binary dump file
FILE *fp = ecreate("c:\\bindump");

// Get the address range selected, or return false if there was no selection
if (read_selection(&saddr, &eaddr))
{
    int size = eaddr - saddr;
    
    // Dump the selected address range to a binary file
    get_many_bytes(saddr, buf, size);
    ewrite(fp, buf, size);
}

eclose(fp);


Related: eclose, ecreate, eread, ewrite, fopenWT, openR

Note: You must be logged in to add notes to the IDA SDK reference manual.
Active in Last 5 Minutes
st1

There are 30,635 total registered users.


Recently Created Topics
Keep you Slim Easily
Apr/19
Your Best Slim &...
Apr/19
Amazing Your Lucky Skin
Apr/18
Your Skin Very Soft...
Apr/17
Question about debbu...
Apr/16
IDA PRO Struct Point...
Apr/15
problems with pseudo...
Apr/04
Problem with ollydbg
Mar/22
Should binaries be n...
Mar/22
Ida pro on infineon ...
Mar/10


Recent Forum Posts
Should binaries be n...
Kolisar
Problem with ollydbg
nullx42
!findtrampoline Immu...
skycrack
looking for a softwa...
raxen
Documenting reversed...
raxen
.orpc section what's...
mbin
Pydbg load() issue
phreak
Pydbg load() issue
netw0rm
How would you interp...
mbin
Pydbg load() issue
phreak


Recent Blog Entries
loisjoneis
Apr/19
Detox Max Review - amazing ...

martanhawkings
Apr/19
iPhone 4S- Purchase Apple’s...

elenablacik
Apr/18
Cleanse Pure Premium Supple...

hermesfrsac
Apr/17
Il convient que vous devrie...

oleavr
Apr/17
frida.re 1.2.0 is out, with...

More ...


Recent Blog Comments
pedram on:
Dec/21
frida.github.io: scriptable...

cin100dy on:
Dec/16
Devil May Cry Cosplay Costu...

NeOXQuiCk on:
Nov/26
DONGLE

maharlee on:
Nov/21
Cheap Nike Shoes NZ,Nike Sh...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit