Lines Matching refs:buflen
153 size_t buflen; /* Edited line buffer size. */
441 nwritten = snprintf(ls->buf,ls->buflen,"%s",lc.cvec[i]);
696 if (l->len < l->buflen) {
772 strncpy(l->buf,history[history_len - 1 - l->history_index],l->buflen);
773 l->buf[l->buflen-1] = '\0';
825 static int linenoiseEdit(int stdin_fd, int stdout_fd, char *buf, size_t buflen, const char *prompt)
834 l.buflen = buflen;
845 l.buflen--; /* Make sure there is always space for the nulterm */
1047 static int linenoiseRaw(char *buf, size_t buflen, const char *prompt) {
1050 if (buflen == 0) {
1056 count = linenoiseEdit(STDIN_FILENO, STDOUT_FILENO, buf, buflen, prompt);