tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: reallocarr(3)
In article <trinity-1751e2f7-14e9-40eb-8b4a-a2d8f8ab055c-1423169811734@3capp-mailcom-bs13>,
Kamil Rytarowski <n54%gmx.com@localhost> wrote:
>Joerg Sonnenberger wrote:
>
>reallocarr(3):
>+ distinguish ENOMEM and EOVERFLOW
>+ tries to preserve global errno
That's not the only problem. What does reallocarray(ptr, 10, 0)
return in the current OpenBSD implementation? What should it return?
How about reallocarray(ptr, 0, 10)? When reallocarray returns NULL,
can one check errno to determine if the allocation failed?
christos
Home |
Main Index |
Thread Index |
Old Index