Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: mbozza
  • Content: Threads
  • Order by date
  1. mbozza

    Pointer arithmetic and scope

    I'm writing a memory viewer which can both display a block of process memory and dump it to file. The following function works fine. void SomeFunction(void) { char* buf = (char*) 0x00123ABC; for(int i = 0; i < bigNumber; i++) { fprintf(fp, "%x", *buf); } } However if I try this below...
  2. mbozza

    simple fwrite error, or something deeper?

    I get this wierd output, both to file and screen. At certain points, I think at 32 or 36 bytes in, the data reads in ok but writing out seems write ahead or skip bytes, writing the *member variable oddly, with part of the next variable, *member_size added on. I feel that maybe I am seeing some...
  3. mbozza

    structure members

    I am having problems accessing certain structure members, namely char* members. Instead of reading along the Char* array, it is incrementing it. What am I doing wrong? #include <stdio.h> #include <stdlib.h> #define NAME 1162690894 // read as 4 bytes, spells NAME void prnt_block( struct...

Part and Inventory Search

Back
Top