while ((bp = Fgets(fp)))
fputs(bp, ofp);
fputc('\n', ofp); /* append a newline just in case */
+ fclose (fp);
} else
agerr(AGWARN, "can't open library file %s\n", p);
}
fseek(fp, 0, SEEK_SET);
rc = fread(contents, statbuf.st_size, 1, fp);
contents[statbuf.st_size] = '\0';
- fclose(fp);
dtinsert(EPSF_contents, us);
us->must_inline = must_inline;
- return us;
} else {
agerr(AGWARN, "BoundingBox not found in epsf file %s\n", str);
- return NULL;
+ us = NULL;
}
+ fclose(fp);
+ return us;
}
void epsf_init(node_t * n)
while ((bp = Fgets(fp)))
gvputs(job, bp);
gvputs(job, "\n"); /* append a newline just in case */
+ fclose (fp);
} else
agerr(AGWARN, "can't open library file %s\n", p);
}
if((fp = fopen("fix-fc.exe", "r")) == NULL)
return ;
+ fclose (fp);
if (!system ("fix-fc.exe")) {
system ("del fix_fc.exe");
system ("dot -c"); //run dot -c once too since we already run things :)