realloc
Gregg Townsend
gmt at arizona.edu
Fri Mar 31 04:40:10 AEST 1989
realloc() is sometimes used to grow a list of objects as entries are added.
If it's to be used with an initially empty list, realloc() must accept a null
pointer as its frist argument -- because ANSI C allows malloc() to return NULL
in response to a request of size zero!
Gregg Townsend / Computer Science Dept / Univ of Arizona / Tucson, AZ 85721
+1 602 621 4325 gmt at Arizona.EDU 110 57 16 W / 32 13 45 N / +758m
More information about the Comp.lang.c
mailing list