[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NaNs in ascii

From: Paul Kienzle
Subject: Re: NaNs in ascii
Date: Sat, 26 Oct 2002 21:50:37 -0400

On Sat, Oct 26, 2002 at 09:11:14PM -0400, Paul Kienzle wrote:
> Actually, I believe octave relies on libc to read/write.  I'm guessing
> cygwin uses msvcrt for its scanf since 2.1.37 fails to read NaNs on
> cygwin.
> With the recent introduction of NA for missing data, we will have to
> replace scanf with one of our own making, presumably lifting it from
> glibc and extending it to handle NA.  I'll check tonight if it is 
> easy enough to extract.

Maybe not so easy.  To implement sscanf they fake a FILE * pointer and
preload its buffer with the source string.  This is not something I would
expect to work with a foreign C library.

Paul Kienzle

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]