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