Lines Matching refs:aptr
795 char *aptr; in replace() local
796 if ((aptr = strrchr(*tmp, c)) == NULL) in replace()
798 aptr = strdup(aptr + 1); // XXX: check in replace()
800 *tmp = aptr; in replace()
817 char *tmp, *search = NULL, *aptr, delim; in _history_expand_command() local
824 aptr = NULL; in _history_expand_command()
845 if ((aptr = el_calloc(offs + 1, sizeof(*aptr))) in _history_expand_command()
848 (void)strlcpy(aptr, command, offs + 1); in _history_expand_command()
860 if (ptr == NULL && aptr == NULL) in _history_expand_command()
864 *result = strdup(aptr ? aptr : ptr); in _history_expand_command()
865 if (aptr) in _history_expand_command()
866 el_free(aptr); in _history_expand_command()
909 tmp = history_arg_extract(start, end, aptr? aptr:ptr); in _history_expand_command()
913 if (aptr) in _history_expand_command()
914 el_free(aptr); in _history_expand_command()
918 tmp = strdup(aptr? aptr:ptr); in _history_expand_command()
920 if (aptr) in _history_expand_command()
921 el_free(aptr); in _history_expand_command()
933 if ((aptr = strrchr(tmp, '/')) != NULL) in _history_expand_command()
934 *aptr = '\0'; in _history_expand_command()
940 if ((aptr = strrchr(tmp, '.')) != NULL) in _history_expand_command()
941 *aptr = '\0'; in _history_expand_command()
965 aptr = _rl_compat_sub(tmp, from, to, g_on); in _history_expand_command()
966 if (aptr) { in _history_expand_command()
968 tmp = aptr; in _history_expand_command()