blob: 61f456e48667e6a717802eadc5a471d46a8121a7 (
plain) (
tree)
|
|
#include <stdlib.h>
#include <errno.h>
void *memalign(size_t align, size_t len)
{
void *mem;
int ret;
if ((ret = posix_memalign(&mem, align, len))) {
errno = ret;
return 0;
}
return mem;
}
|