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 …]
3631 static char *lineptr; variable3636 lineptr = NULL; in flush_input()3642 if (lineptr == NULL || *lineptr == 0) { in inchar()3644 lineptr = NULL; in inchar()3647 lineptr = line; in inchar()3649 return *lineptr++; in inchar()3655 lineptr = str; in take_input()
290 static int add_byte(int c, char **lineptr, size_t slen, size_t *n) in add_byte() argument297 nline = xrealloc(*lineptr, new_size); in add_byte()301 *lineptr = nline; in add_byte()305 (*lineptr)[slen] = c; in add_byte()310 static ssize_t compat_getline(char **lineptr, size_t *n, FILE *stream) in compat_getline() argument312 char *line = *lineptr; in compat_getline()327 *lineptr = line; in compat_getline()340 *lineptr = line; in compat_getline()