Lines Matching refs:aptr
799 char *aptr; in replace() local
800 if ((aptr = strrchr(*tmp, c)) == NULL) in replace()
802 aptr = strdup(aptr + 1); // XXX: check in replace()
804 *tmp = aptr; in replace()
821 char *tmp, *search = NULL, *aptr, delim; in _history_expand_command() local
828 aptr = NULL; in _history_expand_command()
849 if ((aptr = el_calloc(offs + 1, sizeof(*aptr))) in _history_expand_command()
852 (void)strlcpy(aptr, command, offs + 1); in _history_expand_command()
864 if (ptr == NULL && aptr == NULL) in _history_expand_command()
868 *result = strdup(aptr ? aptr : ptr); in _history_expand_command()
869 if (aptr) in _history_expand_command()
870 el_free(aptr); in _history_expand_command()
913 tmp = history_arg_extract(start, end, aptr? aptr:ptr); in _history_expand_command()
917 if (aptr) in _history_expand_command()
918 el_free(aptr); in _history_expand_command()
922 tmp = strdup(aptr? aptr:ptr); in _history_expand_command()
924 if (aptr) in _history_expand_command()
925 el_free(aptr); in _history_expand_command()
937 if ((aptr = strrchr(tmp, '/')) != NULL) in _history_expand_command()
938 *aptr = '\0'; in _history_expand_command()
944 if ((aptr = strrchr(tmp, '.')) != NULL) in _history_expand_command()
945 *aptr = '\0'; in _history_expand_command()
969 aptr = _rl_compat_sub(tmp, from, to, g_on); in _history_expand_command()
970 if (aptr) { in _history_expand_command()
972 tmp = aptr; in _history_expand_command()