Pelles C forum

C language => Windows questions => Topic started by: Snowman on April 24, 2015, 11:47:51 AM

Title: How to best check if HeapAlloc() call was successful?
Post 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?
Title: Re: How to best check if HeapAlloc() call was successful?
Post by: Sam Steele on June 21, 2015, 04:37:11 PM
Check the return value of HeapAlloc