Home | History | Annotate | Download | only in decode

Lines Matching defs:fp

49 static int filesize(FILE *fp)
52 fseek(fp, 0, SEEK_END);
53 pos = ftell(fp);
54 fseek(fp, 0, SEEK_SET);
63 FILE *fp;
70 fp = fopen(infilename, "rb");
71 if (fp == NULL)
73 length_of_file = filesize(fp);
77 fread(buf, length_of_file, 1, fp);
78 fclose(fp);