[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
address@hidden
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
Re: NaNs in ascii, Dirk Eddelbuettel, 2002/10/26
NaNs in ascii, John W. Eaton, 2002/10/28