Lines Matching refs:line
2 * ntp_lineedit.c - generic interface to various line editing libs
154 * ntp_readline - read a line with the line editor available
164 char * line;
178 line = readline(lineedit_prompt ? lineedit_prompt : "");
179 if (NULL != line) {
180 if (*line) {
181 add_history(line);
183 *pcount = strlen(line);
192 line = estrdup(cline);
194 line = NULL;
196 line = estrdup("");
215 line = fgets(line_buf, sizeof(line_buf), stdin);
216 if (NULL != line && *line) {
217 *pcount = (int)strlen(line); /* cannot overflow here */
218 line = estrdup(line);
220 line = NULL;
225 if (!line) /* EOF */
228 return line;