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

/macosx-10.10/gnutar-453/gnutar/lib/
H A Dgetline.c27 getline (char **lineptr, size_t *n, FILE *stream) argument
29 return getdelim (lineptr, n, '\n', stream);
H A Dgetdelim.c52 getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp) argument
57 if (lineptr == NULL || n == NULL || fp == NULL)
65 if (*lineptr == NULL || *n == 0)
68 *lineptr = (char *) malloc (*n);
69 if (*lineptr == NULL)
103 new_lineptr = (char *) realloc (*lineptr, needed);
110 *lineptr = new_lineptr;
114 (*lineptr)[cur_len] = i;
120 (*lineptr)[cur_len] = '\0';
H A Dgetdelim.h27 ssize_t getdelim (char **lineptr, size_t *n, int delimiter, FILE *stream);
H A Dgetline.h27 ssize_t getline (char **lineptr, size_t *n, FILE *stream);
/macosx-10.10/cups-408/cups/scheduler/
H A Dmime.c660 *lineptr, /* Current position in line */ local
702 for (lineptr = line + strlen(line) - 1;
703 lineptr >= line && isspace(*lineptr & 255);
704 lineptr --)
705 *lineptr = '\0';
712 lineptr = line;
713 while (*lineptr != ' ' && *lineptr != '\t' && *lineptr !
849 *lineptr, /* Current position in line */ local
[all...]
H A Dstatbuf.c121 char *lineptr, /* Pointer to end of line in buffer */ local
129 if ((lineptr = strchr(sb->buffer, '\n')) == NULL)
144 if ((lineptr = strchr(sb->buffer, '\n')) == NULL &&
146 lineptr = sb->buffer + sb->bufused;
165 lineptr = sb->buffer + sb->bufused;
166 *lineptr = '\0';
174 lineptr = NULL;
177 if (!lineptr)
193 *lineptr++ = '\0';
314 if (lineptr < s
[all...]
/macosx-10.10/cups-408/cups/examples/
H A Dppdx.c202 *lineptr, /* Current position in line buffer */ local
218 lineptr = line + 4;
261 if ((lineptr + len) >= lineend)
263 *lineptr++ = '\n';
264 *lineptr = '\0';
267 lineptr = line + 4;
270 strlcpy(lineptr, pair, lineend - lineptr);
271 lineptr += len;
293 if ((lineptr
[all...]
/macosx-10.10/cups-408/cups/man/
H A Dmantohtml.c55 *lineptr, /* Pointer into line */ local
179 for (lineptr = line + 4; *lineptr; lineptr ++)
180 if (*lineptr == '\"')
182 else if (isalnum(*lineptr & 255))
183 html_putc(*lineptr, outfile);
189 for (lineptr = line + 4; *lineptr; lineptr
[all...]
/macosx-10.10/misc_cmds-33/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...]
/macosx-10.10/cups-408/cups/notifier/
H A Dmailto.c503 *lineptr; /* Pointer into line */ local
514 for (lineptr = strchr(line, ' '); lineptr; lineptr = strchr(lineptr, ' '))
516 while (*lineptr == ' ')
517 *lineptr++ = '\0';
519 if (*lineptr)
525 argv[argc ++] = lineptr;
/macosx-10.10/nano-12/src/
H A Dutils.c188 ssize_t ngetline(char **lineptr, size_t *n, FILE *stream) argument
190 return getdelim(lineptr, n, '\n', stream);
196 ssize_t ngetdelim(char **lineptr, size_t *n, int delim, FILE *stream) argument
202 if (lineptr == NULL || n == NULL || stream == NULL ||
209 if (*lineptr == NULL) {
210 *lineptr = charalloc(MAX_BUF_SIZE);
217 *lineptr = charealloc(*lineptr, *n + MAX_BUF_SIZE);
222 (*lineptr)[indx++] = (char)c;
231 *lineptr
[all...]
H A Dproto.h694 ssize_t ngetline(char **lineptr, size_t *n, FILE *stream);
697 ssize_t ngetdelim(char **lineptr, size_t *n, int delim, FILE *stream);
/macosx-10.10/cups-408/cups/cups/
H A Dppd.c2753 *lineptr; /* Current position in line buffer */ local
2779 lineptr = line->buffer;
2785 if (lineptr >= (line->buffer + line->bufsize - 1))
2816 lineptr = temp + (lineptr - line->buffer);
2845 if (lineptr == line->buffer && ignoreblank)
2853 *lineptr++ = '\n';
2872 *lineptr++ = (char)ch;
3009 if (lineptr > line->buffer && lineptr[
[all...]
H A Ddest.c3701 *lineptr, /* Pointer into line */ local
3728 while (cupsFileGetConf(fp, line, sizeof(line), &lineptr, &linenum))
3734 DEBUG_printf(("9cups_get_dests: linenum=%d line=\"%s\" lineptr=\"%s\"",
3735 linenum, line, lineptr));
3737 if ((_cups_strcasecmp(line, "dest") && _cups_strcasecmp(line, "default")) || !lineptr)
3743 name = lineptr;
3749 while (!isspace(*lineptr & 255) && *lineptr && *lineptr != '/')
3750 lineptr
[all...]
H A Dhttp.c1165 char *lineptr, /* Pointer into line */ local
1183 lineptr = line;
1187 while (lineptr < lineend)
1289 lineptr < lineend && bufptr < bufend;)
1300 *lineptr++ = *bufptr++;
1315 *lineptr = '\0';
/macosx-10.10/curl-83.1.2/curl/lib/
H A Dcookie.c341 char *lineptr, /* first character of the line */
376 semiptr=strchr(lineptr, ';'); /* first, find a semicolon */
378 while(*lineptr && ISBLANK(*lineptr))
379 lineptr++;
381 ptr = lineptr;
619 if(strncmp(lineptr, "#HttpOnly_", 10) == 0) {
620 lineptr += 10;
624 if(lineptr[0]=='#') {
630 ptr=strchr(lineptr, '\
334 Curl_cookie_add(struct SessionHandle *data, struct CookieInfo *c, bool httpheader, char *lineptr, const char *domain, const char *path) argument
890 char *lineptr; local
[all...]
H A Dcookie.h80 struct CookieInfo *, bool header, char *lineptr,
/macosx-10.10/configd-699.1.5/dnsinfo/
H A Ddnsinfo_flatfile.c297 char *lineptr; local
312 lineptr = line;
313 word = strsep(&lineptr, sep);
338 word = strsep(&lineptr, sep);
383 word = strsep(&lineptr, sep);
424 word = strsep(&lineptr, sep);
458 word = strsep(&lineptr, sep);
482 word = strsep(&lineptr, sep);
/macosx-10.10/network_cmds-457/mtest.tproj/
H A Dmtest.c248 char *lineptr; local
258 lineptr = line;
259 while (isblank(*lineptr))
260 lineptr++;
261 if (*lineptr != '#' && *lineptr != '\n')
262 process_cmd(lineptr, s, s6, fp);
/macosx-10.10/zsh-61/zsh/Src/
H A Dhist.c3166 * lineptr is the line to be split.
3189 histsplitwords(char *lineptr, short **wordsp, int *nwordsp, int *nwordposp, argument
3194 char *start = lineptr;
3197 LinkList wordlist = bufferwords(NULL, lineptr, NULL,
3220 if (inblank(*lineptr))
3221 lineptr++;
3222 else if (lineptr[0] == '\\' && lineptr[1] == '\n') {
3227 lineptr += 2;
3231 lptr = lineptr;
[all...]
/macosx-10.10/ntp-92/ntpd/
H A Dntp_refclock.c614 char *lineptr, /* current line pointer */
626 for (dp = lineptr; dpt < dpend; dpt++) {
633 if (dp == lineptr)
637 return (dp - lineptr);
661 char *lineptr, /* current line pointer */
709 for (dp = lineptr; dpt < dpend; dpt++)
712 i = dp - lineptr;
716 rbufp->fd, ulfptoa(&trtmp, 6), i, lineptr);
612 refclock_gtlin( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument
659 refclock_gtraw( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument

Completed in 222 milliseconds