dynarray icon indicating copy to clipboard operation
dynarray copied to clipboard

Consider propagating allocation failure

Open eignnx opened this issue 9 months ago • 0 comments

If malloc (or realloc) cannot allocate the requested memory, it will return NULL. Currently this library does not check for this condition. How should this be handled? Is it worth propagating an error signal of some type to the caller of dynarray_create or dynarray_push? If so how?

eignnx avatar May 09 '25 05:05 eignnx