4 ms·
>Also I don't think many C libraries that allocate expose that as a failure condition (I've certainly seen some which don't even check!) This is a very common
by valarauca1 11y ago
>Also I don't think many C libraries that allocate expose that as a failure condition (I've certainly seen some which don't even check!)
This is a very common mistake in most C code. Malloc can fail, and it return NULL when it does.