Pelles C forum
C language => Windows questions => Topic started by: Snowman on April 24, 2015, 11:47:51 AM
-
Hello, I am currently using HeapAlloc() in my program instead of malloc().
I need to check if the memory was correctly allocated. What should I do?
- Check the return value of HeapAlloc()?
- Use Structured Exception Handling (SEH)?
- Use malloc() instead (and check its return value).
-
Check the return value of HeapAlloc