3 ms·
I've worked on a system where NULL mapped to valid memory. (It was an embedded system, so the memory map was custom and bizarre). Of course, insanity ensued w
by efaref 12y ago
I've worked on a system where NULL mapped to valid memory. (It was an embedded system, so the memory map was custom and bizarre). Of course, insanity ensued when new programmers worked on it.
- astrobe_ 12y agoIs it the kind of system for which memset(somestruct, 0, sizeof(somestruct)) doesn't work if the struct has pointers (NULL isn't 0, so null checks will fail if one inits such struct like this)?
- JoeAltmaier 12y agoYeah but to fix that, you only have to not use that byte of memory. Or not have to point to it. Not a real issue.