projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yet another ugly legacy syscall rename...
[oweals/musl.git]
/
src
/
malloc
/
memalign.c
1
#include <stdlib.h>
2
#include <errno.h>
3
4
void *memalign(size_t align, size_t len)
5
{
6
void *mem;
7
int ret;
8
if ((ret = posix_memalign(&mem, align, len))) {
9
errno = ret;
10
return 0;
11
}
12
return mem;
13
}