[Python-Dev] Problem with the memory docs (original) (raw)
Martin v. Loewis martin@v.loewis.de
04 Apr 2002 21:54:52 +0200
- Previous message: [Python-Dev] Problem with the memory docs
- Next message: [Python-Dev] Problem with the memory docs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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
- Previous message: [Python-Dev] Problem with the memory docs
- Next message: [Python-Dev] Problem with the memory docs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]