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

/freebsd-9.3-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-9.3-release/contrib/cvs/lib/
H A Dgetline.c49 getstr (lineptr, n, stream, terminator, offset, limit)
50 char **lineptr;
61 if (!lineptr || !n || !stream)
67 if (!*lineptr)
70 *lineptr = malloc (*n);
71 if (!*lineptr)
76 *lineptr[0] = '\0';
80 read_pos = *lineptr + offset;
105 assert((*lineptr + *n) == (read_pos + nchars_avail));
113 nchars_avail = *n + *lineptr
[all...]
/freebsd-9.3-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-9.3-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-9.3-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-9.3-release/contrib/ntp/ntpd/
H A Dntp_refclock.c575 char *lineptr, /* current line pointer */
587 dp = lineptr;
603 dlen = dp - lineptr;
610 ? lineptr
634 char *lineptr, /* current line pointer */
644 memcpy(lineptr, rbufp->recv_buffer, bmax);
645 lineptr[bmax] = '\0';
650 lineptr));
573 refclock_gtlin( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument
632 refclock_gtraw( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument
/freebsd-9.3-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 119 milliseconds