Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stdlib.h File Reference
#include <stddef.h>
#include <limits.h>
#include <zephyr/toolchain.h>

Go to the source code of this file.

Macros

#define EXIT_SUCCESS   0
 
#define EXIT_FAILURE   1
 

Functions

unsigned long strtoul (const char *nptr, char **endptr, int base)
 
long strtol (const char *nptr, char **endptr, int base)
 
unsigned long long strtoull (const char *nptr, char **endptr, int base)
 
long long strtoll (const char *nptr, char **endptr, int base)
 
int atoi (const char *s)
 
void * malloc (size_t size)
 
void * aligned_alloc (size_t alignment, size_t size)
 
void free (void *ptr)
 
void * calloc (size_t nmemb, size_t size)
 
void * realloc (void *ptr, size_t size)
 
void * reallocarray (void *ptr, size_t nmemb, size_t size)
 
void * bsearch (const void *key, const void *array, size_t count, size_t size, int(*cmp)(const void *key, const void *element))
 
void qsort_r (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *, void *), void *arg)
 
void qsort (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
 
static FUNC_NORETURN void exit (int status)
 
FUNC_NORETURN void abort (void)
 
static int abs (int __n)
 
static long labs (long __n)
 
static long long llabs (long long __n)
 
char * getenv (const char *name)
 

Macro Definition Documentation

◆ EXIT_FAILURE

#define EXIT_FAILURE   1

◆ EXIT_SUCCESS

#define EXIT_SUCCESS   0

Function Documentation

◆ abort()

FUNC_NORETURN void abort ( void  )

◆ abs()

static int abs ( int  __n)
inlinestatic

◆ aligned_alloc()

void * aligned_alloc ( size_t  alignment,
size_t  size 
)

◆ atoi()

int atoi ( const char *  s)

◆ bsearch()

void * bsearch ( const void *  key,
const void *  array,
size_t  count,
size_t  size,
int(*)(const void *key, const void *element)  cmp 
)

◆ calloc()

void * calloc ( size_t  nmemb,
size_t  size 
)

◆ exit()

static FUNC_NORETURN void exit ( int  status)
inlinestatic

◆ free()

void free ( void *  ptr)

◆ getenv()

char * getenv ( const char *  name)

◆ labs()

static long labs ( long  __n)
inlinestatic

◆ llabs()

static long long llabs ( long long  __n)
inlinestatic

◆ malloc()

void * malloc ( size_t  size)

◆ qsort()

void qsort ( void *  base,
size_t  nmemb,
size_t  size,
int(*)(const void *, const void *)  compar 
)

◆ qsort_r()

void qsort_r ( void *  base,
size_t  nmemb,
size_t  size,
int(*)(const void *, const void *, void *)  compar,
void *  arg 
)

◆ realloc()

void * realloc ( void *  ptr,
size_t  size 
)

◆ reallocarray()

void * reallocarray ( void *  ptr,
size_t  nmemb,
size_t  size 
)

◆ strtol()

long strtol ( const char *  nptr,
char **  endptr,
int  base 
)

◆ strtoll()

long long strtoll ( const char *  nptr,
char **  endptr,
int  base 
)

◆ strtoul()

unsigned long strtoul ( const char *  nptr,
char **  endptr,
int  base 
)

◆ strtoull()

unsigned long long strtoull ( const char *  nptr,
char **  endptr,
int  base 
)