"Fredrik Lundh" <fredrik@pythonware.com> writes: > umm. I have to admit that it's rather ugly, but I'm pretty sure the > following guarantees that requesting zero bytes will never return a > NULL pointer: As Tim explained earlier, this implementation violates the ISO C requirement that different calls of malloc return different pointers. Regards, Martin