TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
stdlib.h
Aller à la documentation de ce fichier.
1 
30 #ifndef _STDLIB_H_
31 #define _STDLIB_H_
32 
33 #include <sys/cdefs.h>
34 
35 __BEGIN_DECLS
36 
37 #include <sys/types.h>
38 #include <malloc.h>
39 
40 #define EXIT_SUCCESS 0
41 #define EXIT_FAILURE 1
43 #define RAND_MAX 2147483647
44 
48 void abort(void);
49 
58 void *realloc(void *ptr, size_t size);
59 
68 void *calloc(size_t nmemb, size_t size);
69 
70 long int strtol(const char* nptr, char** endptr, int base);
71 unsigned long int strtoul(const char *nptr, char **endptr, int base);
72 
80 int atoi(const char* __nptr);
81 
96 void itoa (char *buf, int base, int d);
97 
98 int rand(void);
99 void srand(unsigned int seed);
100 
101 void exit(int value);
102 
103 void init_environ(char **envp);
104 
105 char *getenv(const char *name);
106 
107 int putenv(char *string);
108 
109 int clearenv(void);
110 
111 void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *));
112 
113 __END_DECLS
114 
115 #endif
116 
void * calloc(size_t nmemb, size_t size)
Alloue un bloc mémoire initiallement à 0.
Definition: stdlib.c:57
int itoa(char *buf, int base, int d)
Converti l'entier d en une chaîne de caractère et le stock dans buf. L'entier base permet de spécifie...
Definition: stdlib.c:29
void abort(void)
Terminer de manière anormale un programme.
Definition: stdlib.c:343
void * realloc(void *ptr, size_t size)
Modifie la taille du bloc de mémoire.
Definition: malloc.c:270
int atoi(const char *__nptr)
Definition: stdlib.c:3