Home | History | Annotate | Download | only in examples

Lines Matching defs:fp

60 read_int(FILE *fp, saidx_t *n) {
62 size_t m = fread(c, sizeof(unsigned char), 4, fp);
82 FILE *fp, *ofp;
101 if(fopen_s(&fp, fname = argv[1], "rb") != 0) {
103 if((fp = LFS_FOPEN(fname = argv[1], "rb")) == NULL) {
117 fp = stdin;
147 if(read_int(fp, &blocksize) != 4) {
163 for(n = 0; (m = read_int(fp, &pidx)) != 0; n += m) {
165 if((m != 4) || ((m = fread(T, sizeof(sauchar_t), blocksize, fp)) == 0)) {
168 (ferror(fp) || !feof(fp)) ? "Cannot read from" : "Unexpected EOF in",
189 if(ferror(fp)) {
199 if(needclose & 1) { fclose(fp); }