More questions on realloc - Thanks
- From: "James S. Singleton" <pt109@xxxxxxxxxx>
- Date: Tue, 29 Nov 2005 18:26:51 GMT
Thanks everybody for your replies. I gather that:
a) How to obtain the size of the memory region pointed to by ptr in
realloc(ptr, size) is implementation-dependent.
b) Implementing realloc(ptr, size) using malloc(), memcpy() and free()
alone, without knowing the size of the memory region pointed to by ptr, is
just not possible.
.
- Follow-Ups:
- Re: More questions on realloc - Thanks
- From: S.Tobias
- Re: More questions on realloc - Thanks
- From: David Resnick
- Re: More questions on realloc - Thanks
- Prev by Date: Re: direct string manuplation not working
- Next by Date: Re: More questions on realloc - Thanks
- Previous by thread: More questions on realloc
- Next by thread: Re: More questions on realloc - Thanks
- Index(es):
Relevant Pages
|