Lines Matching refs:ep
153 FILE* ep;
164 if (!(ep = fileopen(state.tmp.edit, "EMw")))
171 headout(ep, hp, editheaders|GNL);
173 if (filecopy(NiL, fp, state.tmp.edit, ep, NiL, size, NiL, NiL, 0))
177 fileclose(ep);
178 ep = 0;
198 if (!(ep = fileopen(state.tmp.edit, "Ea+")))
200 if (editheaders && headset(&pp, NiL, ep, hp, NiL, editheaders|GTO|GMETOO)) {
203 if (!(ep = fileopen(state.tmp.edit, "EMa+")))
205 filecopy(NiL, pp.fp, state.tmp.edit, ep, NiL, (off_t)0, NiL, NiL, 0);
221 if (fseek(ep, (off_t)-2, SEEK_END) < 0)
222 return ep;
223 lc = getc(ep) == '\n' ? 1 : 0;
224 if (getc(ep) == '\n')
231 if (putc('\n', ep) == EOF)
235 putc('\n', ep);
246 fflush(ep);
248 return ep;
252 if (ep)
253 fileclose(ep);