char *ret = NULL;
if (str != NULL) {
if (!(ret = strdup(str)))
- BUFerr(BUF_F_BUF_STRDUP,ERR_R_MALLOC_FAILURE);
+ BUFerr(BUF_F_BUF_STRDUP, ERR_R_MALLOC_FAILURE);
}
return ret;
}
char *ret = NULL;
if (str != NULL) {
if (!(ret = strndup(str, siz)))
- BUFerr(BUF_F_BUF_STRNDUP,ERR_R_MALLOC_FAILURE);
+ BUFerr(BUF_F_BUF_STRNDUP, ERR_R_MALLOC_FAILURE);
}
return ret;
}
void *ret = NULL;
if (data != NULL) {
if (!(ret = malloc(siz)))
- BUFerr(BUF_F_BUF_MEMDUP,ERR_R_MALLOC_FAILURE);
+ BUFerr(BUF_F_BUF_MEMDUP, ERR_R_MALLOC_FAILURE);
else
(void) memcpy(ret, data, siz);
}
char *ret = NULL;
if (str != NULL) {
if (!(ret = strdup(str)))
- BUFerr(BUF_F_BUF_STRDUP,ERR_R_MALLOC_FAILURE);
+ BUFerr(BUF_F_BUF_STRDUP, ERR_R_MALLOC_FAILURE);
}
return ret;
}
char *ret = NULL;
if (str != NULL) {
if (!(ret = strndup(str, siz)))
- BUFerr(BUF_F_BUF_STRNDUP,ERR_R_MALLOC_FAILURE);
+ BUFerr(BUF_F_BUF_STRNDUP, ERR_R_MALLOC_FAILURE);
}
return ret;
}
void *ret = NULL;
if (data != NULL) {
if (!(ret = malloc(siz)))
- BUFerr(BUF_F_BUF_MEMDUP,ERR_R_MALLOC_FAILURE);
+ BUFerr(BUF_F_BUF_MEMDUP, ERR_R_MALLOC_FAILURE);
else
(void) memcpy(ret, data, siz);
}