On Tue, 20 Jul 2021 at 10:04, Ranier Vilela <ranier...@gmail.com> wrote: > Perhaps you would agree with me that in the most absolute of times, malloc > will not fail. > So it makes more sense to test: > if (ret != NULL) > than > if (ret == NULL)
I think it'd be better to use unlikely() for that. David