realloc

Gordon Cross crossgl at ingr.com
Tue Apr 4 00:36:04 AEST 1989


In article <9122 at alice.UUCP> andrew at alice.UUCP (Andrew Hume) writes:
}
}gregg townsend reminds us of the pANS ``feature'' that malloc(0) returns NULL.
}can anyone provide the (or any) justification of this pointless stupid
}definition?

Yes, a pointer to something of zero size takes up NO space!!!  You would be
able to increase this size later with the (ANSI) realloc...  (ain't life great)

-- 

Gordon Cross             UUCP:      uunet!ingr!crossgl     "all opinions are
111 Westminister Way     INTERNET:  crossgl at ingr.com        mine and not those
Madison, AL 35758        MA BELL:   (205) 772-7842          of my employer."



More information about the Comp.lang.c mailing list