Ouch. I'll keep looking then.
Any recommendations for reliable C data structures?
Any recommendations for reliable C data structures?
If that situation is not allowed, I would suggest you shouldn't be performing memory allocation (or any other resource allocation) dynamically.