[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much
From: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much |
Date: |
Sat, 2 Mar 2024 14:55:40 -0500 (EST) |
Follow-up Comment #11, bug #65390 (group octave):
I vote to apply jwe patch and deal with misleading error message post 9.1
release. At the moment a workaround is to specify "\n" explicitly in the
format string.
octave:12> s = "1 2\n3 4\n"
s = 1 2
3 4
octave:13> [a,b,c,d] = sscanf (s, '%f %f\n', [2 inf])
a =
1 3
2 4
b = 4
c =
d = 9
octave:14>
Dmitri.
--
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65390>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, (continued)
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Dmitri A. Sergatskov, 2024/03/01
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Dmitri A. Sergatskov, 2024/03/01
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Dmitri A. Sergatskov, 2024/03/01
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Dmitri A. Sergatskov, 2024/03/01
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Rik, 2024/03/01
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, John W. Eaton, 2024/03/01
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Dmitri A. Sergatskov, 2024/03/01
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Hendrik K, 2024/03/01
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Rik, 2024/03/02
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Rik, 2024/03/02
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much,
Dmitri A. Sergatskov <=
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Rik, 2024/03/02
- [Octave-bug-tracker] [bug #65390] fscanf produces 1 line too much, Rik, 2024/03/02
- [Octave-bug-tracker] [bug #65390] scanf sets error message when input ends with newline, Rik, 2024/03/02