size_t ds_strlen(const char *s)
Replicates behaviour of strlen from libc.
void ds_exit_set(int err)
Set errno to the specified value, print the error message, and exit the process.
char * ds_strdup(const char *s1)
Replicates behaviour of strdup from libc.
void * ds_xcalloc(size_t count, size_t size)
Replicates behaviour of calloc from libc, but fails on memory allocation errors.
void ds_exit(void)
Print the error message, corresponding to errno, exit the process.
int ds_strcmp(const char *s1, const char *s2)
Replicates strcmp from libc.
void * ds_xmalloc(size_t size)
Replicates behaviour of malloc from libc, but fails on memory allocation errors.
void ds_bzero(void *s, size_t n)
Replicates behaviour of bzero from libc.