Searched refs:lineptr (Results 1 – 3 of 3) sorted by relevance
93 static char *lineptr; variable101 lineptr = line; in xmon_getchar()107 *lineptr++ = '\n'; in xmon_getchar()114 if (lineptr > line) { in xmon_getchar()118 --lineptr; in xmon_getchar()122 while (lineptr > line) { in xmon_getchar()126 --lineptr; in xmon_getchar()130 if (lineptr >= &line[sizeof(line) - 1]) in xmon_getchar()134 *lineptr++ = c; in xmon_getchar()138 lineleft = lineptr - line; in xmon_getchar()[all …]
3562 static char *lineptr; variable3567 lineptr = NULL; in flush_input()3573 if (lineptr == NULL || *lineptr == 0) { in inchar()3575 lineptr = NULL; in inchar()3578 lineptr = line; in inchar()3580 return *lineptr++; in inchar()3586 lineptr = str; in take_input()
296 static int add_byte(int c, char **lineptr, size_t slen, size_t *n) in add_byte() argument303 nline = xrealloc(*lineptr, new_size); in add_byte()307 *lineptr = nline; in add_byte()311 (*lineptr)[slen] = c; in add_byte()316 static ssize_t compat_getline(char **lineptr, size_t *n, FILE *stream) in compat_getline() argument318 char *line = *lineptr; in compat_getline()333 *lineptr = line; in compat_getline()346 *lineptr = line; in compat_getline()