I noticed that in all the calls and definitions of memalign in bcheck.c the signature looks like this:
memalign(size_t size, size_t align), while the definition of the standard memalign is in reverse: memalign(size_t alignment, size_t size)
(see https://linux.die.net/man/3/memalign). Was it done on purpose or is it an error?