Lines Matching defs:fp
68 FILE *fp;
75 if ((fp = fopen(tc ? tc : TERMCAP, "r")) != 0)
82 fp = fopen(TERMCAP, "r");
85 if (fp) {
87 tc = tc_find(fp, term, wrkbuf, (int)(sizeof wrkbuf - strlen(term)));
89 (void) fclose(fp);
138 tc_find(fp, term, buffer, bufsiz)
139 FILE *fp;
153 if (!fgets(ip, min(in,BUFSIZ), fp)) break;
161 if (ferror(fp) || ip == buffer || *(ip - 1) != '\n')
182 rewind(fp);
183 tc_fetch = tc_find(fp, tc_fetch, tcbuf, min(bufsiz,TCBUFSIZ));