Re: [AD] mode-list updates. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Peter Wang <tjaden@xxxxxxxxxx> wrote:
> If realloc fails (it returns NULL), you'll have a memory leak.
> Sorry about being cryptic yesterday.
I read further through the docs, the GNU libc docs are a bit cryptic, but my
old "using turbo c" book says realloc frees memory and returns NULL if
re-allocation fails. The question is if we can rely on this.
BTW! if anyone have a copy of the ANSI/ISO C specs i would be very grateful
to recieve a copy.
Sincerely Henrik Stokseth.
-----------------------------------------------------------------------
E-mail: hstokset@xxxxxxxxxx Homepage: http://hstokset.n3.net