Re: Dynamically resizing a buffer
In article <wfydnQ74ZZLZ3F HbnZ2dnUVZ8v2vn Z2d@bt.com>,
Richard Heathfield <rjh@see.sig.in validwrote:
Possibly. realloc() may well be a no-op for size decreases.
-- Richard
--
"Considerat ion shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
In article <wfydnQ74ZZLZ3F HbnZ2dnUVZ8v2vn Z2d@bt.com>,
Richard Heathfield <rjh@see.sig.in validwrote:
>Once you know that the line has been read completely, you
>can "shrink" the allocation to be an exact fit, thus taking up no more
>memory than you actually need.
>can "shrink" the allocation to be an exact fit, thus taking up no more
>memory than you actually need.
-- Richard
--
"Considerat ion shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Comment