Lines Matching refs:result
476 char **result; in spdk_strarray_from_string() local
496 result = calloc(count + 1, sizeof(char *)); in spdk_strarray_from_string()
497 if (result == NULL) { in spdk_strarray_from_string()
507 result[i] = strdup(c); in spdk_strarray_from_string()
509 result[i] = strndup(c, next - c); in spdk_strarray_from_string()
512 if (result[i] == NULL) { in spdk_strarray_from_string()
513 spdk_strarray_free(result); in spdk_strarray_from_string()
522 return result; in spdk_strarray_from_string()
529 char **result; in spdk_strarray_dup() local
536 result = calloc(count + 1, sizeof(char *)); in spdk_strarray_dup()
537 if (result == NULL) { in spdk_strarray_dup()
542 result[i] = strdup(strarray[i]); in spdk_strarray_dup()
543 if (result[i] == NULL) { in spdk_strarray_dup()
544 spdk_strarray_free(result); in spdk_strarray_dup()
549 return result; in spdk_strarray_dup()