Click to See Complete Forum and Search --> : how do you do it in c?


binaryDigit
10-14-2000, 05:19 PM
ok i know that in c++ you can use the set_new_handler function to detect an out of memory condition when
dynamically allocating memory.

what is the equivilant in c?


------------------
http://home.earthlink.net/~pebice/philLinux.html (http://home.earthlink.net/~pebice)

kmj
10-14-2000, 06:42 PM
I think malloc just returns NULL.

binaryDigit
10-14-2000, 07:42 PM
got it, thanks.


------------------
http://home.earthlink.net/~pebice/philLinux.html (http://home.earthlink.net/~pebice)