|
From: Philipp K. J. <ja...@ie...> - 2009-11-02 16:06:19
|
Comments at the end.
On Sunday 01 November 2009 10:38:04 pm Ethan Merritt (sfeam) wrote:
> On Sunday 01 November 2009, Philipp K. Janert wrote:
> > > Simple test: feed it a file junk.dat:
> > > 1
> > > 2
> > > junk
> > > 3
> > > 4
> > >
> > > gnuplot> plot 'junk.dat' with lp
> > > ^
> > > Bad data on line 3
> > > gnuplot>
> >
> > Does plot do anything special here?
> >
> > I have a situation (stolen from the fit function),
> > which basically says:
> >
> > while( (i = readline(...)) != EOF ) {
> > ...
> >
> > And now I feed it your data file and it does NOT
> > return either DF_MISSING or DF_UNDEFINED!
>
> No, it returns 0. But that's not EOF, so it should
> be catchable.
No, it doesn't. It does not return anything for the
line that contains "junk", when run with "using 1".
It does return -2 (DF_UNDEFINED) for the line
with "junk", but only when run with "using ($1)".
|