? (was: realloc)
Doug Gwyn
gwyn at smoke.BRL.MIL
Tue Apr 4 18:13:10 AEST 1989
In article <4801 at ingr.com> crossgl at ingr.UUCP (Gordon Cross) writes:
>Yes, it is. I've always wanted behavior similiar to an "out-of-memory"
>signal that I could trap to let me know when there is no more memory. So
>much so in fact, I wrote my own malloc that lets me set things up to have
>a function called whenever an out-of-memory condition occurs. Regrettably
>to the best of my knowlegde, the pANS does not address this issue...
Sure it does. malloc() returns a null pointer when there is no more
memory. You can build whatever additional mechanism you want on top
of this; X3J11 was considerate enough not to decide for you what this
should be.
However, I don't think that has anything to do with Andrew's complaint.
More information about the Comp.lang.c
mailing list