Home | History | Annotate | Download | only in examples

Lines Matching defs:fp

60 write_int(FILE *fp, saidx_t n) {
64 return fwrite(c, sizeof(unsigned char), 4, fp);
80 FILE *fp, *ofp;
108 if(fopen_s(&fp, fname = argv[i], "rb") != 0) {
110 if((fp = LFS_FOPEN(fname = argv[i], "rb")) == NULL) {
124 fp = stdin;
155 if(LFS_FSEEK(fp, 0, SEEK_END) == 0) {
156 n = LFS_FTELL(fp);
157 rewind(fp);
184 for(n = 0; 0 < (m = fread(T, sizeof(sauchar_t), blocksize, fp)); n += m) {
202 if(ferror(fp)) {
212 if(needclose & 1) { fclose(fp); }