this change is made with some reluctance, but i think it's for the best. correct programs must handle either behavior, so there is little advantage to having malloc(0) return NULL. and i managed to actually make the malloc code slightly smaller with this change. |
||
|---|---|---|
| .. | ||
| __brk.c | ||
| __simple_malloc.c | ||
| calloc.c | ||
| DESIGN | ||
| malloc.c | ||
| memalign.c | ||
| posix_memalign.c | ||