Lines Matching refs:in
196 static int ebReadString(ExpandBuf* pBuf, FILE* in) in ebReadString() argument
203 ic = getc(in); in ebReadString()
204 if (feof(in) || ferror(in)) { in ebReadString()
221 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected) in ebReadData() argument
228 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in); in ebReadData()
230 if (eofExpected && feof(in) && !ferror(in)) { in ebReadData()
573 static int filterData(FILE* in, FILE* out) in filterData() argument
586 if (ebReadString(pBuf, in) != 0) in filterData()
609 if (ebReadData(pBuf, in, 12, FALSE) != 0) in filterData()
624 if (ebReadData(pBuf, in, 1, TRUE) != 0) in filterData()
626 if (feof(in)) in filterData()
630 if (ebReadData(pBuf, in, kRecHdrLen-1, FALSE) != 0) in filterData()
644 if (ebReadData(pBuf, in, length, FALSE) != 0) in filterData()
676 FILE* in = stdin; in main() local
699 in = fopen(argv[1], "rb"); in main()
700 if (in == NULL) { in main()
711 if (in != stdin) in main()
712 fclose(in); in main()
717 cc = filterData(in, out); in main()
719 if (in != stdin) in main()
720 fclose(in); in main()