Home
last modified time | relevance | path

Searched refs:lineptr (Results 1 – 2 of 2) sorted by relevance

/linux/arch/powerpc/xmon/
H A Dnonstdio.c93 static char *lineptr; variable
101 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 …]
/linux/scripts/kconfig/
H A Dconfdata.c301 static ssize_t getline_stripped(char **lineptr, size_t *n, FILE *stream) in getline_stripped() argument
305 len = getline(lineptr, n, stream); in getline_stripped()
307 if (len > 0 && (*lineptr)[len - 1] == '\n') { in getline_stripped()
309 (*lineptr)[len] = '\0'; in getline_stripped()
311 if (len > 0 && (*lineptr)[len - 1] == '\r') { in getline_stripped()
313 (*lineptr)[len] = '\0'; in getline_stripped()