libcdio 2.1.0
|
Miscellaneous utility functions. More...
Go to the source code of this file.
Macros | |
#define | CDIO_INLINE |
#define | MAX(a, b) |
#define | MIN(a, b) |
#define | IN(x, low, high) |
#define | CLAMP(x, low, high) |
#define | CDIO_FREE_IF_NOT_NULL(p_obj) |
Functions | |
void * | _cdio_memdup (const void *mem, size_t count) |
char * | _cdio_strdup_upper (const char str[]) |
char * | _cdio_strdup_fixpath (const char path[]) |
void | _cdio_strfreev (char **strv) |
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) |
char * | cdio_realpath (const char *psz_src, char *psz_dst) |
Miscellaneous utility functions.
Warning: this will probably get removed/replaced by using glib.h
#define CDIO_FREE_IF_NOT_NULL | ( | p_obj | ) |
#define CDIO_INLINE |
#define CLAMP | ( | x, | |
low, | |||
high ) |
#define IN | ( | x, | |
low, | |||
high ) |
#define MAX | ( | a, | |
b ) |
#define MIN | ( | a, | |
b ) |
void * _cdio_memdup | ( | const void * | mem, |
size_t | count ) |
char * _cdio_strdup_fixpath | ( | const char | path[] | ) |
Duplicate path and make it platform compliant. Typically needed for MinGW/MSYS where a "/c/..." path must be translated to "c:/..." for use with fopen(), etc. Returned string must be freed by the caller using cdio_free().
char * _cdio_strdup_upper | ( | const char | str[] | ) |
void _cdio_strfreev | ( | char ** | strv | ) |
size_t _cdio_strlenv | ( | char ** | str_array | ) |
char ** _cdio_strsplit | ( | const char | str[], |
char | delim ) |
uint8_t cdio_from_bcd8 | ( | uint8_t | p | ) |
char * cdio_realpath | ( | const char * | psz_src, |
char * | psz_dst ) |
cdio_realpath() same as POSIX.1-2001 realpath if that's around. If not we do poor-man's simulation of that behavior.
uint8_t cdio_to_bcd8 | ( | uint8_t | n | ) |