Lines Matching refs:result
533 char *r, *result; in _rl_compat_sub() local
551 r = result = el_calloc(len + 1, sizeof(*r)); in _rl_compat_sub()
552 if (result == NULL) in _rl_compat_sub()
562 return result; in _rl_compat_sub()
568 return result; in _rl_compat_sub()
819 char **result) in _history_expand_command() argument
827 *result = NULL; in _history_expand_command()
868 *result = strdup(aptr ? aptr : ptr); in _history_expand_command()
871 if (*result == NULL) in _history_expand_command()
928 *result = tmp; in _history_expand_command()
979 *result = tmp; in _history_expand_command()
996 char *tmp, *result; in history_expand() local
1026 char *nresult = el_realloc(result, \ in history_expand()
1033 result = nresult; \ in history_expand()
1035 (void)strlcpy(&result[idx], what, len + 1); \ in history_expand()
1039 result = NULL; in history_expand()
1105 add_history(result); in history_expand()
1115 *output = result; in history_expand()
1127 char **arr, *result = NULL; in history_arg_extract() local
1155 result = el_calloc(len, sizeof(*result)); in history_arg_extract()
1156 if (result == NULL) in history_arg_extract()
1160 (void)strcpy(result + len, arr[i]); in history_arg_extract()
1163 result[len++] = ' '; in history_arg_extract()
1165 result[len] = '\0'; in history_arg_extract()
1172 return result; in history_arg_extract()
1184 char **result = NULL, *temp, delim = '\0'; in history_tokenize() local
1209 nresult = el_realloc(result, (size_t)size * sizeof(*nresult)); in history_tokenize()
1211 el_free(result); in history_tokenize()
1214 result = nresult; in history_tokenize()
1220 el_free(result[i]); in history_tokenize()
1221 el_free(result); in history_tokenize()
1225 result[idx++] = temp; in history_tokenize()
1226 result[idx] = NULL; in history_tokenize()
1230 return result; in history_tokenize()