zephyr/lib/libc/minimal/source
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
..
stdlib libc/minimal: reallocarray() in terms of realloc() 2021-01-24 10:11:11 -05:00
stdout libc: minimal: stdout: fix fputs return value 2021-01-19 23:03:12 -05:00
string libc: add strtok_r implementation 2020-08-18 09:19:58 -07:00
time libc/minimal: fix reproducibility of gmtime 2019-07-31 11:48:18 +03:00