How to catch out of memory allocation in C?
-
Hello everybody, Does anyone know how to catch out of memory allocation in C/C++? Thanks in advance
It is never late to learn
-
Hello everybody, Does anyone know how to catch out of memory allocation in C/C++? Thanks in advance
It is never late to learn
Simply check the reutned pointer for NULL. If it is null the memory was not allocated. -Saurabh
-
Hello everybody, Does anyone know how to catch out of memory allocation in C/C++? Thanks in advance
It is never late to learn
That really depends on HOW you're allocating the memory. Throw us a bone here :) Mark
-
That really depends on HOW you're allocating the memory. Throw us a bone here :) Mark
:-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
:-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]*woof!*