MicrOS
|
Go to the source code of this file.
Classes | |
struct | div_t |
Structure to represent the result value of an integral division. More... | |
struct | ldiv_t |
Structure to represent the result value of an integral division. More... | |
struct | lldiv_t |
Structure to represent the result value of an integral division. More... | |
Macros | |
#define | RAND_MAX INT32_MAX |
Maximum value returned by rand. More... | |
#define | EXIT_SUCCESS 0 |
Success termination code. More... | |
#define | EXIT_FAILURE -1 |
Failure termination code. More... | |
Functions | |
int | abs (int n) |
Absolute value. More... | |
long int | labs (long int n) |
Absolute value. More... | |
long long int | llabs (long long int n) |
Absolute value. More... | |
div_t | div (int numer, int denom) |
Integral division. More... | |
ldiv_t | ldiv (long int numer, long int denom) |
Integral division. More... | |
lldiv_t | lldiv (long long int numer, long long int denom) |
Integral division. More... | |
int | atoi (const char *string) |
Convert string to integer. More... | |
long int | atol (const char *string) |
Convert string to integer. More... | |
long long int | atoll (const char *string) |
Convert string to integer. More... | |
char * | itoa (int input, char *buffer, int base) |
Convert integer to string (non-standard function) More... | |
double | strtod (const char *str, char **endptr) |
Convert string to double. More... | |
void * | malloc (size_t size) |
Allocate memory block. More... | |
void * | malloc_align (size_t size, uint32_t align) |
Allocate memory block with the specified align. More... | |
void * | calloc (size_t num, size_t size) |
Allocate and zero-initialize array. More... | |
void * | realloc (void *ptr, size_t size) |
Reallocate memory block. More... | |
void | free (void *ptr) |
Deallocate memory block. More... | |
int | rand () |
Generate random number. More... | |
void | srand (unsigned int new_seed) |
Initialize random number generator. More... | |
void | qsort (void *base, size_t num, size_t size, int(*compar)(const void *, const void *)) |
Sorts an array. More... | |
void * | bsearch (const void *key, const void *base, size_t num, size_t size, int(*compar)(const void *, const void *)) |
Binary search in array. More... | |
void | abort () |
Abort current process. More... | |
void | exit (int status) |
Terminate calling process. More... | |
char * | getenv (const char *name) |
Get environment string. More... | |
void | __stdlib_swap (void *first, void *second, size_t size) |
Swap two elements. Used by qsort() . More... | |
int | __stdlib_partition (void *base, size_t num, size_t size, int(*compar)(const void *, const void *)) |
Sort and return position of key. Used by qsort() . More... | |
Variables | |
unsigned int | seed |
#define EXIT_FAILURE -1 |
Failure termination code.
#define EXIT_SUCCESS 0 |
Success termination code.
#define RAND_MAX INT32_MAX |
Maximum value returned by rand.
int __stdlib_partition | ( | void * | base, |
size_t | num, | ||
size_t | size, | ||
int(*)(const void *, const void *) | compar | ||
) |
Sort and return position of key. Used by qsort()
.
void abort | ( | ) |
Abort current process.
int abs | ( | int | n | ) |
Absolute value.
int atoi | ( | const char * | string | ) |
Convert string to integer.
long int atol | ( | const char * | string | ) |
Convert string to integer.
long long int atoll | ( | const char * | string | ) |
Convert string to integer.
void* bsearch | ( | const void * | key, |
const void * | base, | ||
size_t | num, | ||
size_t | size, | ||
int(*)(const void *, const void *) | compar | ||
) |
Binary search in array.
div_t div | ( | int | numer, |
int | denom | ||
) |
Integral division.
void exit | ( | int | status | ) |
Terminate calling process.
void free | ( | void * | ptr | ) |
Deallocate memory block.
char* getenv | ( | const char * | name | ) |
Get environment string.
char* itoa | ( | int | input, |
char * | buffer, | ||
int | base | ||
) |
Convert integer to string (non-standard function)
long int labs | ( | long int | n | ) |
Absolute value.
ldiv_t ldiv | ( | long int | numer, |
long int | denom | ||
) |
Integral division.
long long int llabs | ( | long long int | n | ) |
Absolute value.
lldiv_t lldiv | ( | long long int | numer, |
long long int | denom | ||
) |
Integral division.
void* malloc | ( | size_t | size | ) |
Allocate memory block.
Sorts an array.
int rand | ( | ) |
Generate random number.
void* realloc | ( | void * | ptr, |
size_t | size | ||
) |
Reallocate memory block.
void srand | ( | unsigned int | new_seed | ) |
Initialize random number generator.
double strtod | ( | const char * | str, |
char ** | endptr | ||
) |
Convert string to double.
unsigned int seed |