Lines Matching refs:inf
185 FILE *inf = NULL;
220 while ((inf = nxtfile(argc, argv, &fname, ohbuf, 0)) != NULL) {
225 if (inskip(inf, pgnm, lines))
249 if ((cnt = inln(inf,lbuf,LBUF,&cps,0,&mor)) < 0)
301 if (inf != stdin)
302 (void)fclose(inf);
313 if (inf != NULL && inf != stdin)
314 (void)fclose(inf);
348 FILE *inf = NULL;
414 while ((inf = nxtfile(argc, argv, &fname, ohbuf, 0)) != NULL) {
419 if (inskip(inf, pgnm, lines))
469 cnt = inln(inf,ptbf,colwd,&cps,1,&mor);
627 if (inf != stdin)
628 (void)fclose(inf);
642 if (inf != NULL && inf != stdin)
643 (void)fclose(inf);
666 FILE *inf = NULL;
690 while ((inf = nxtfile(argc, argv, &fname, ohbuf, 0)) != NULL) {
692 if (inskip(inf, pgnm, lines))
725 if ((cnt = inln(inf,ptbf,colwd,&cps,1,
781 if (inf != stdin)
782 (void)fclose(inf);
793 if (inf != NULL && inf != stdin)
794 (void)fclose(inf);
1020 * inf: file
1028 inln(FILE *inf, char *buf, int lim, int *cps, int trnc, int *mor)
1042 while ((--lim >= 0) && ((ch = getc(inf)) != EOF)) {
1056 if ((col > lim) && (ungetc(ch, inf) == EOF))
1074 while ((--lim >= 0) && ((ch = getc(inf)) != EOF)) {
1104 while ((ch = getc(inf)) != EOF) {
1265 * inf FILE * to read from
1270 inskip(FILE *inf, int pgcnt, int lncnt)
1277 while ((c = getc(inf)) != EOF) {
1282 if (inf != stdin)
1283 (void)fclose(inf);
1300 FILE *inf = NULL;
1316 inf = stdin;
1322 return(inf);
1339 inf = stdin;
1346 return(inf);
1360 if ((inf = fopen(argv[eoptind], "r")) == NULL) {
1376 return(inf);
1389 if (fstat(fileno(inf), &statbuf) < 0) {
1391 (void)fclose(inf);
1402 if (inf == NULL)
1410 if (inf != stdin)
1411 (void)fclose(inf);
1415 return(inf);