9#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STDLIB_H_
10#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STDLIB_H_
19unsigned long strtoul(
const char *nptr,
char **endptr,
int base);
20long strtol(
const char *nptr,
char **endptr,
int base);
25void *
calloc(
size_t nmemb,
size_t size);
30 size_t count,
size_t size,
31 int (*cmp)(
const void *
key,
const void *element));
33void qsort_r(
void *base,
size_t nmemb,
size_t size,
34 int (*compar)(
const void *,
const void *,
void *),
void *arg);
38void _exit(
int status);
39static inline void exit(
int status)
45#ifdef CONFIG_MINIMAL_LIBC_RAND
46#define RAND_MAX INT_MAX
48void srand(
unsigned int seed);
51static inline int abs(
int __n)
53 return (__n < 0) ? -__n : __n;
56static inline long labs(
long __n)
58 return (__n < 0L) ? -__n : __n;
61static inline long long llabs(
long long __n)
63 return (__n < 0LL) ? -__n : __n;
66static inline void qsort(
void *base,
size_t nmemb,
size_t size,
67 int (*compar)(
const void *,
const void *))
69 typedef int (*compar3)(
const void *,
const void *,
void *);
71 qsort_r(base, nmemb, size, (compar3)compar, NULL);
irp nz macro MOVR cc s mov cc s endm endr irp aw macro LDR aa s
Definition: asm-macro-32-bit-gnu.h:17
ZTEST_BMEM int count
Definition: main.c:33
void * ptr
Definition: printk.c:79
static k_spinlock_key_t key
Definition: spinlock_error_case.c:14
void qsort_r(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *, void *), void *arg)
void * calloc(size_t nmemb, size_t size)
long strtol(const char *nptr, char **endptr, int base)
static long long llabs(long long __n)
Definition: stdlib.h:61
void * bsearch(const void *key, const void *array, size_t count, size_t size, int(*cmp)(const void *key, const void *element))
unsigned long strtoul(const char *nptr, char **endptr, int base)
static void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
Definition: stdlib.h:66
static long labs(long __n)
Definition: stdlib.h:56
void * malloc(size_t size)
void * reallocarray(void *ptr, size_t nmemb, size_t size)
void * realloc(void *ptr, size_t size)
static int abs(int __n)
Definition: stdlib.h:51
static void exit(int status)
Definition: stdlib.h:39