GBDK 2020 API Docs
API Documentation for GBDK 2020
 All Classes Files Functions Variables Typedefs Macros Pages
stdlib.h
Go to the documentation of this file.
1 
4 #ifndef STDLIB_INCLUDE
5 #define STDLIB_INCLUDE
6 
7 #include <types.h>
8 
9 #if !defined(__SDCC_mcs51) && !defined(__SDCC_ds390) && !defined(__SDCC_ds400) && !defined(__SDCC_hc08) && !defined(__SDCC_s08) && !defined(__SDCC_pic14) && !defined(__SDCC_pic16) && !defined(__SDCC_pdk13) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15)
10 #define __reentrant
11 #endif
12 
17 void exit(int status) NONBANKED;
18 
19 #if 0
20 
22 int getkey(void);
23 #endif
24 
30 int abs(int i);
31 
32 
37 long labs(long num);
38 
39 
55 int atoi(const char *s);
56 
57 
64 long atol(const char *s);
65 
72 char *itoa(int n, char *s);
73 
80 char *utoa(unsigned int n, char *s);
81 
88 char *ltoa(long n, char *s);
89 
96 char *ultoa(unsigned long n, char *s);
97 
98 
99 /* Searching and sorting utilities (ISO C11 7.22.5) */
110 extern void *bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) __reentrant);
111 
112 
119 extern void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) __reentrant);
120 
121 #endif
int atoi(const char *s)
void * bsearch(const void *key, const void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *) __reentrant)
char * ultoa(unsigned long n, char *s)
void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *) __reentrant)
#define NONBANKED
Definition: types.h:11
int abs(int i)
#define __reentrant
Definition: stdlib.h:10
char * ltoa(long n, char *s)
char * utoa(unsigned int n, char *s)
void exit(int status) NONBANKED
char * itoa(int n, char *s)
long atol(const char *s)
long labs(long num)