Lely core libraries  2.2.5
stdlib.h
Go to the documentation of this file.
1 
22 #ifndef LELY_LIBC_STDLIB_H_
23 #define LELY_LIBC_STDLIB_H_
24 
25 #include <lely/features.h>
26 
27 #include <stdlib.h>
28 
29 #if __STDC_VERSION__ >= 201112L || defined(__USE_ISOC11)
30 
31 #define aligned_free free
32 
33 #else // !(__STDC_VERSION__ >= 201112L || __USE_ISOC11)
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
51 void *aligned_alloc(size_t alignment, size_t size);
52 
60 void aligned_free(void *ptr);
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif // !(__STDC_VERSION__ >= 201112L || __USE_ISOC11)
67 
68 #if !(_POSIX_C_SOURCE > 200112L)
69 
80 int setenv(const char *envname, const char *envval, int overwrite);
81 
82 #endif // !(_POSIX_C_SOURCE > 200112L)
83 
84 #endif // !LELY_LIBC_STDLIB_H_
void aligned_free(void *ptr)
Causes the space at ptr to be deallocated, that is, made available for further allocation.
Definition: stdlib.c:90
void * aligned_alloc(size_t alignment, size_t size)
Allocates space for an object whose alignment is specified by alignment, whose size is specified by s...
Definition: stdlib.c:46
This header file is part of the C11 and POSIX compatibility library; it includes <stdlib.h> and defines any missing functionality.
This header file is part of the Lely libraries; it contains the compiler feature definitions.