Lines Matching refs:stringp
245 char *stringp; /* tmp string pointer */
301 stringp = (char *) malloc(MAXNETCONFIGLINE);
302 if (stringp == NULL)
317 if (fgets(stringp, MAXNETCONFIGLINE, nc_file) == NULL) {
318 free(stringp);
325 } while (*stringp == '#');
330 free(stringp);
335 free(stringp);
342 list->linep = stringp;
343 if (parse_ncp(stringp, list->ncp) == -1) {
344 free(stringp);
448 char *stringp; /* temporary string pointer */
497 if ((stringp = fgets(linep, MAXNETCONFIGLINE, file)) == NULL) {
500 } while (*stringp == '#');
501 if (stringp == NULL) { /* eof */
504 if ((tmpp = strpbrk(stringp, "\t ")) == NULL) { /* can't parse file */
508 if (strlen(netid) == (size_t) (len = tmpp - stringp) && /* a match */
509 strncmp(stringp, netid, (size_t)len) == 0) {
521 } while (stringp != NULL);
552 * Note that we modify stringp (putting NULLs after tokens) and
554 * stringp.
556 * stringp - string to parse
561 parse_ncp(char *stringp, struct netconfig *ncp)
568 stringp[strlen(stringp)-1] = '\0'; /* get rid of newline */
570 if ((ncp->nc_netid = strtok_r(stringp, "\t ", &lasts)) == NULL) {