Home | History | Annotate | Download | only in samples

Lines Matching defs:fp

76   FILE* fp = fopen(filename, "wb");
77 if (!fp)
79 fprintf(fp, "P6\n# PDF test render\n%d %d\n255\n", width, height);
95 fwrite(result, out_len, 1, fp);
97 fclose(fp);
122 FILE* fp = fopen(filename, "wb");
123 if (!fp) {
129 &png_encoding.front(), 1, png_encoding.size(), fp);
133 (void)fclose(fp);
148 FILE* fp = fopen(filename, "wb");
149 if (!fp)
166 fwrite(&file_header, sizeof(file_header), 1, fp);
167 fwrite(&bmi, bmi.bmiHeader.biSize, 1, fp);
168 fwrite(buffer, out_len, 1, fp);
169 fclose(fp);