Lines Matching defs:fp
1614 void WriteHeader(cmsIT8* it8, SAVESTREAM* fp)
1620 WriteStr(fp, t->SheetType);
1621 WriteStr(fp, "\n");
1629 WriteStr(fp, "#\n# ");
1633 Writef(fp, "%c", *Pt);
1636 WriteStr(fp, "# ");
1640 WriteStr(fp, "\n#\n");
1648 WriteStr(fp, "KEYWORD\t\"");
1649 WriteStr(fp, p->Keyword);
1650 WriteStr(fp, "\"\n");
1656 WriteStr(fp, p->Keyword);
1662 Writef(fp, "\t%s", p ->Value);
1666 Writef(fp, "\t\"%s\"", p->Value );
1670 Writef(fp, "\t0x%X", atoi(p ->Value));
1674 Writef(fp, "\t0x%B", atoi(p ->Value));
1678 Writef(fp, "\t\"%s,%s\"", p->Subkey, p->Value);
1686 WriteStr (fp, "\n");
1694 void WriteDataFormat(SAVESTREAM* fp, cmsIT8* it8)
1701 WriteStr(fp, "BEGIN_DATA_FORMAT\n");
1702 WriteStr(fp, " ");
1707 WriteStr(fp, t->DataFormat[i]);
1708 WriteStr(fp, ((i == (nSamples-1)) ? "\n" : "\t"));
1711 WriteStr (fp, "END_DATA_FORMAT\n");
1717 void WriteData(SAVESTREAM* fp, cmsIT8* it8)
1724 WriteStr (fp, "BEGIN_DATA\n");
1730 WriteStr(fp, " ");
1736 if (ptr == NULL) WriteStr(fp, "\"\"");
1742 WriteStr(fp, "\"");
1743 WriteStr(fp, ptr);
1744 WriteStr(fp, "\"");
1747 WriteStr(fp, ptr);
1750 WriteStr(fp, ((j == (t->nSamples-1)) ? "\n" : "\t"));
1753 WriteStr (fp, "END_DATA\n");
2271 FILE *fp;
2275 fp = fopen(FileName, "rt");
2276 if (!fp) {
2281 Size = (cmsUInt32Number) fread(Ptr, 1, 132, fp);
2283 if (fclose(fp) != 0)