Go to the documentation of this file.
18 #ifndef __LIBC_STDLIB_H
19 #define __LIBC_STDLIB_H
33 #define EXIT_SUCCESS 0
36 #define EXIT_FAILURE 1
53 extern C void exit(
int status);
62 extern C void itoa(
char *buffer,
int divisor,
int number);
75 extern C int atoi(
const char *nptr);
99 extern C long strtol(
const char *nptr,
char **endptr,
int base);
116 extern C void *
malloc(
size_t size);
133 extern C void free(
void *ptr);
145 extern C void srandom(
unsigned int seed);
152 extern C long int random(
void);
C void srandom(unsigned int seed)
Random number generator.
C void itoa(char *buffer, int divisor, int number)
Convert a number to a string.
C int atoi(const char *nptr)
Convert a string to an integer.
C long strtol(const char *nptr, char **endptr, int base)
Convert a string to a long integer.
C long int random(void)
Random number generator.
C void * malloc(size_t size)
A memory allocator.
#define C
Used to define external C functions.
C void exit(int status)
Terminate a process.
C void free(void *ptr)
Free allocated memory.