Lines Matching refs:offs
621 _history_expand_command(const char *command, size_t offs, size_t cmdlen,
637 if (strchr(":^*$", command[offs + 1])) {
647 idx = (command[offs + 1] == ':')? 1:0;
650 if (command[offs + 1] == '#') {
652 if ((aptr = malloc(offs + 1)) == NULL)
654 (void)strncpy(aptr, command, offs);
655 aptr[offs] = '\0';
660 qchar = (offs > 0 && command[offs - 1] == '"')? '"':0;
661 ptr = get_history_event(command + offs, &idx, qchar);
663 has_mods = command[offs + idx] == ':';
678 cmd = command + offs + idx + 1;
718 command + offs + idx);
729 if (*cmd == '\0' || ((size_t)(cmd - (command + offs)) >= cmdlen)) {