Lines Matching refs:fp_pic
46 * (fp_pic) and then adds the next size bytes read from the current input file to
47 * file fp_pic. All in-line pictures are saved in fp_pic and located later using
48 * the name string and picture file size that separate pictures saved in fp_pic.
51 * called and it first looks for the picture file in fp_pic. If it's found there
52 * the entire picture (ie. size bytes) is copied from fp_pic to a new temp file
53 * and that temp file is used as the picture file. If there's nothing in fp_pic
76 FILE *fp_pic = NULL; /* in-line pictures go here */
214 long total; /* and sizes - from *fp_pic */
222 * any in-line pictures fp_pic won't be NULL and we'll look there first. If *path
223 * is found in *fp_pic we create another temp file, open it for update, unlink it,
225 * the file pointer to the caller. If fp_pic is NULL or the lookup fails we just
231 if ( fp_pic != NULL ) {
232 fseek(fp_pic, 0L, 0);
233 while ( fscanf(fp_pic, "%s %ld\n", name, &total) != EOF ) {
241 piccopy(fp_pic, fp, total);
245 fseek(fp_pic, total, 1);
262 char *tname; /* temp file pathname - for *fp_pic */
269 * Adds an in-line picture file to the end of temporary file *fp_pic. All pictures
278 if ( fp_pic == NULL ) {
281 if ( (fp_pic = fopen(tname, "w+")) == NULL )
289 fseek(fp_pic, 0L, 2);
290 fprintf(fp_pic, "%s %ld\n", name, total);
292 fflush(fp_pic);
293 piccopy(fp, fp_pic, total);
314 * *fp_pic and then copy them to yet another temporary file immediately before