1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #include "sys-defines.h"
- #include "extern.h"
- FILE *
- _API_outfile(R___(Plotter *_plotter) FILE *outfile)
- {
- FILE *oldoutfile;
-
- if (_plotter->data->open)
- {
- _plotter->error (R___(_plotter)
- "outfile: invalid operation");
- return (FILE *)NULL;
- }
- oldoutfile = _plotter->data->outfp;
- _plotter->data->outfp = outfile;
- #ifdef LIBPLOTTER
- _plotter->data->outstream = NULL;
- #endif
- _plotter->data->page_number = 0;
- return oldoutfile;
- }
|