zephyr/lib/libc/minimal/source/stdlib
Martin Åberg 180ce491ad libc/minimal: reallocarray() in terms of realloc()
reallocarray() is defined in terms of realloc(). From OpenBSD manual
pages:
    "Designed for safe allocation of arrays, the reallocarray()
    function is similar to realloc() except it operates on nmemb
    members of size size and checks for integer overflow in the
    calculation nmemb * size."

The return value of sys_heap_realloc() is not compatible with that
of realloc().

Signed-off-by: Martin Åberg <martin.aberg@gaisler.com>
2021-01-24 10:11:11 -05:00
..
abort.c libc: minimal: Implement abort(). 2020-10-28 17:02:16 +01:00
atoi.c
bsearch.c
exit.c
malloc.c libc/minimal: reallocarray() in terms of realloc() 2021-01-24 10:11:11 -05:00
strtol.c
strtoul.c