stdlib.h
Go to the documentation of this file.
#ifndef STDLIB_INCLUDE
#define STDLIB_INCLUDE
#include <types.h>
void exit(int status) OLDCALL;
#if 0
int getkey(void) OLDCALL;
#endif
int abs(int i);
long labs(long num) OLDCALL;
int atoi(const char *s);
long atol(const char *s);
char *itoa(int n, char *s, unsigned char radix) OLDCALL;
char *uitoa(unsigned int n, char *s, unsigned char radix) OLDCALL;
char *ltoa(long n, char *s, unsigned char radix) OLDCALL;
char *ultoa(unsigned long n, char *s, unsigned char radix) OLDCALL;
void *calloc (size_t nmemb, size_t size);
void *malloc (size_t size);
void *realloc (void *ptr, size_t size);
#if __STDC_VERSION__ >= 201112L
inline void *aligned_alloc(size_t alignment, size_t size)
{
(void)alignment;
return malloc(size);
}
#endif
extern void free (void * ptr);
/* Searching and sorting utilities (ISO C11 7.22.5) */
extern void *bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) REENTRANT);
extern void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) REENTRANT);
#endif
OLDCALL
#define OLDCALL
Definition: types.h:21
abs
int abs(int i)
atoi
int atoi(const char *s)
atol
long atol(const char *s)
bsearch
void * bsearch(const void *key, const void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *) REENTRANT)
calloc
void * calloc(size_t nmemb, size_t size)
exit
void exit(int status) OLDCALL
free
void free(void *ptr)
itoa
char * itoa(int n, char *s, unsigned char radix) OLDCALL
labs
long labs(long num) OLDCALL
ltoa
char * ltoa(long n, char *s, unsigned char radix) OLDCALL
malloc
void * malloc(size_t size)
qsort
void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *) REENTRANT)
realloc
void * realloc(void *ptr, size_t size)
uitoa
char * uitoa(unsigned int n, char *s, unsigned char radix) OLDCALL
ultoa
char * ultoa(unsigned long n, char *s, unsigned char radix) OLDCALL
types.h