Lines Matching refs:ofp
40 static FILE *ofp;
46 ofp = fopen(fname, "w");
47 return ofp == NULL ? -1 : 0;
53 return fclose(ofp) == EOF ? -1 : 0;
61 if ((pos = ftell(ofp)) == -1)
73 if (fseek(ofp, pos, SEEK_SET) == -1)
101 if (nmemb - fwrite(&out, sizeof(out[0]), nmemb, ofp))
109 if (putc(c, ofp) == EOF)
116 if (fputs(str, ofp) == EOF)
125 if (fwrite(&i, sizeof(i), 1, ofp) != 1)