#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
#define | IN(x, low, high) ((x) >= (low) && (x) <= (high)) |
#define | CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) |
#define | to_bcd8 cdio_to_bcd8 |
#define | from_bcd8 cdio_from_bcd8 |
Functions | |
void * | _cdio_memdup (const void *mem, size_t count) |
char * | _cdio_strdup_upper (const char str[]) |
void | _cdio_strfreev (char **strv) |
char * | _cdio_strjoin (char *strv[], unsigned count, const char delim[]) |
size_t | _cdio_strlenv (char **str_array) |
char ** | _cdio_strsplit (const char str[], char delim) |
uint8_t | cdio_to_bcd8 (uint8_t n) |
uint8_t | cdio_from_bcd8 (uint8_t p) |
Warning: this will probably get removed/replaced by using glib.h
#define CLAMP | ( | x, | |||
low, | |||||
high | ) | (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) |
#define from_bcd8 cdio_from_bcd8 |
#define IN | ( | x, | |||
low, | |||||
high | ) | ((x) >= (low) && (x) <= (high)) |
#define MAX | ( | a, | |||
b | ) | (((a) > (b)) ? (a) : (b)) |
#define MIN | ( | a, | |||
b | ) | (((a) < (b)) ? (a) : (b)) |
#define to_bcd8 cdio_to_bcd8 |
void* _cdio_memdup | ( | const void * | mem, | |
size_t | count | |||
) |
char* _cdio_strdup_upper | ( | const char | str[] | ) |
void _cdio_strfreev | ( | char ** | strv | ) |
char* _cdio_strjoin | ( | char * | strv[], | |
unsigned | count, | |||
const char | delim[] | |||
) |
size_t _cdio_strlenv | ( | char ** | str_array | ) |
char** _cdio_strsplit | ( | const char | str[], | |
char | delim | |||
) |
uint8_t cdio_from_bcd8 | ( | uint8_t | p | ) |
uint8_t cdio_to_bcd8 | ( | uint8_t | n | ) |