Re: [hackers] [libgrapheme] Rename reallocarray() to reallocate_array() to prevent mangling || Laslo Hunhold
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