Home | History | Annotate | Download | only in examples

Lines Matching defs:fp

69   FILE *fp;
87 if(fopen_s(&fp, argv[2], "rb") != 0) {
89 if((fp = LFS_FOPEN(argv[2], "rb")) == NULL) {
97 if(LFS_FSEEK(fp, 0, SEEK_END) == 0) {
98 n = LFS_FTELL(fp);
99 rewind(fp);
120 if(fread(T, sizeof(sauchar_t), (size_t)n, fp) != (size_t)n) {
123 (ferror(fp) || !feof(fp)) ? "Cannot read from" : "Unexpected EOF in",
128 fclose(fp);
132 if(fopen_s(&fp, argv[3], "rb") != 0) {
134 if((fp = LFS_FOPEN(argv[3], "rb")) == NULL) {
142 if(fread(SA, sizeof(saidx_t), (size_t)n, fp) != (size_t)n) {
145 (ferror(fp) || !feof(fp)) ? "Cannot read from" : "Unexpected EOF in",
150 fclose(fp);