P-p-H-d / mlib

Library of generic and type safe containers in pure C language (C99 or C11) for a wide collection of container (comparable to the C++ STL).
BSD 2-Clause "Simplified" License
863 stars 76 forks source link

Non-null array get() after reset() #120

Closed Willy-JL closed 4 months ago

Willy-JL commented 4 months ago

Is it expected behavior that after push()ing some array items, reset()ting, and get()ing an index, a non-null pointer is returned?

I didn't see out of bounds behavior mentions in the documentation for get(), so I wanted to ask for some more details. Thank you in advance!

EDIT: this is regarding flipper zero firmware code, was told after opening this issue that it is quite an old version of mlib that they use, i will check better

Willy-JL commented 4 months ago

nevermind, i had read the documentation wrong. sorry!