aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/malign.c
blob: 480060c433e945c99fc0ce6a4b9d1e14e7116081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef MALLOC_PROVIDED
/* malign.c -- a wrapper for memalign_r.  */

#include <_ansi.h>
#include <reent.h>
#include <stdlib.h>
#include <malloc.h>

#ifndef _REENT_ONLY

void *
memalign (size_t align,
	size_t nbytes)
{
  return _memalign_r (_REENT, align, nbytes);
}

#endif
#endif