Searched refs:lineptr (Results 1 - 7 of 7) sorted by relevance

/freebsd-10.0-release/contrib/gperf/lib/
H A Dgetline.cc41 getstr (char **lineptr, size_t *n, FILE *stream, char terminator, size_t offset) argument
46 if (!lineptr || !n || !stream)
49 if (!*lineptr)
52 *lineptr = new char[*n];
56 read_pos = *lineptr + offset;
66 assert (*n - nchars_avail == (size_t) (read_pos - *lineptr));
74 nchars_avail = *n + *lineptr - read_pos;
76 if (*lineptr)
78 memcpy (new_line, *lineptr, read_pos - *lineptr);
110 get_line(char **lineptr, size_t *n, FILE *stream) argument
116 get_delim(char **lineptr, size_t *n, int delimiter, FILE *stream) argument
[all...]
H A Dgetline.h32 extern int get_line (char **lineptr, size_t *n, FILE *stream);
39 extern int get_delim (char **lineptr, size_t *n, int delimiter, FILE *stream);
/freebsd-10.0-release/usr.bin/units/
H A Dunits.c113 char line[512], *lineptr; local
150 lineptr = line;
151 if (*lineptr == '/')
153 lineptr += strspn(lineptr, " \n\t");
154 len = strcspn(lineptr, " \n\t");
155 lineptr[len] = 0;
156 if (!strlen(lineptr))
158 if (lineptr[strlen(lineptr)
[all...]
/freebsd-10.0-release/contrib/gcc/
H A Dtree-browser.c954 TB_getline (char **lineptr, long *n, FILE *stream) argument
959 if (lineptr == NULL || n == NULL)
969 if (*lineptr == NULL || *n < 2) /* !seen and no buf yet need 2 chars. */
974 line = (char *) xrealloc (*lineptr, MAX_CANON);
977 *lineptr = line;
981 line = *lineptr;
1006 *lineptr = line;
1013 if (p == *lineptr)
1019 if (p - 2 >= *lineptr && p[-2] == '\r')
1023 return p - *lineptr;
[all...]
/freebsd-10.0-release/usr.sbin/mtest/
H A Dmtest.c256 char *lineptr; local
266 lineptr = line;
267 while (isblank(*lineptr))
268 lineptr++;
269 if (*lineptr != '#' && *lineptr != '\n')
270 process_cmd(lineptr, s, s6, fp);
/freebsd-10.0-release/contrib/ntp/ntpd/
H A Dntp_refclock.c654 char *lineptr, /* current line pointer */
666 for (dp = lineptr; dpt < dpend; dpt++) {
673 if (dp == lineptr)
677 return (dp - lineptr);
701 char *lineptr, /* current line pointer */
749 for (dp = lineptr; dpt < dpend; dpt++)
752 i = dp - lineptr;
756 rbufp->fd, ulfptoa(&trtmp, 6), i, lineptr);
652 refclock_gtlin( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument
699 refclock_gtraw( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument
/freebsd-10.0-release/contrib/gdb/gdb/
H A Dutils.c2027 const char *lineptr;
2044 lineptr = linebuffer;
2045 while (*lineptr)
2051 while (*lineptr && *lineptr != '\n')
2054 if (*lineptr == '\t')
2064 lineptr++;
2069 *wrap_pointer++ = *lineptr;
2071 fputc_unfiltered (*lineptr, stream);
2073 lineptr
2017 const char *lineptr; local
[all...]

Completed in 96 milliseconds