# using namespace std;
void dump (const void *mem, unsigned int n) {
const unsigned char *p = reinterpret_cast< const unsigned char *> (mem);
for (unsigned int i = 0; i < n; i++) {
std::cout << hex << iint(p[i]) << " ";
}
std::cout << std::endl;
}
##
dump (ptr, size);
Tuesday, August 18, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment