I have never seen char[x] used to type a pointer to a memory location. Given we know ptr is the norm why use char and what about the null termination +1 issue.? Should it not simply be typed as type ptr?
Post by Chris Iverson on Aug 31, 2020 13:58:30 GMT -5
I think it was an attempt to force the data type sizes to line up properly for a pointer, and it was char instead of ulong(if you're treating the pointer as a number instead of a string) because they were converting the numeric pointer to characters one byte at a time in the ptrtostr function.
Congratulations on getting it working, by the way! You definitely caught something I missed, because one of the modifications I attempted was removing the ptrtostr code and using ulong in place of char. At least, I think that's what I attempted.