Re: [hackers] [libgrapheme] Rename reallocarray() to reallocate_array() to prevent mangling || Laslo Hunhold

From: NRK <nrk_AT_disroot.org>
Date: Mon, 1 Aug 2022 21:53:45 +0600

On Sun, Jul 31, 2022 at 11:47:40AM +0200, git_AT_suckless.org wrote:
> static void *
> -reallocarray(void *p, size_t len, size_t size)
> +reallocate_array(void *p, size_t len, size_t size)

Given that this no longer shadows a libc/conventional function, I'd go
one step further and move the `fprintf + exit` check inside
reallocate_array() so the calling code doesn't need to worry about null
returns.

- NRK
Received on Mon Aug 01 2022 - 17:53:45 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 01 2022 - 18:00:39 CEST