|
myMPD
Internal API documentation
|
Memory allocation related functions. More...
#include "src/lib/mem.h"#include <string.h>
Functions | |
| char * | my_strdup (const char *str, size_t len) |
Memory allocation related functions.
| char * my_strdup | ( | const char * | str, |
| size_t | len ) |
Duplicate a string and enforces NULL-termination Aborts on malloc failure
| str | String to copy |
| len | Length of string to copy |