- Jan 15, 2000
- 7,052
- 0
- 0
For part of my programming project, we need to grab a filename out of physical memory and test that filename for accuracy. Basically, we are given a virtual address where the filename starts and must use an already specified function to read the filename byte by byte. Therefore we are reading the filename in 1 character at a time.
I'm having trouble figuring out how to build up this filename, because i will need to use that filename later on in the project. the specified function that reads from virtual memory will return what it read in the form of an integer pointer (*value) and basically you can typecast that value as (char)value to read the character that was read. how would you guys suggest building up a string of these individual chars. thanks.
I'm having trouble figuring out how to build up this filename, because i will need to use that filename later on in the project. the specified function that reads from virtual memory will return what it read in the form of an integer pointer (*value) and basically you can typecast that value as (char)value to read the character that was read. how would you guys suggest building up a string of these individual chars. thanks.