octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of out


From: anonymous
Subject: [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values.
Date: Sun, 4 Dec 2022 13:24:31 -0500 (EST)

Follow-up Comment #4, bug #63462 (project octave):

After recompilation of the default branch, there is still the same issue:

[a,b,c,d,cnt, err]=sscanf("1 abcdefg 3\n","%d %s %g %g","C")
a = 1
b = abcdefg
c = 3
d = 3
cnt = 4
err = 
octave:10> version -hgid
ans = b69d89906ae9


However, if I use %d instead of %g, the output is correct.

[a,b,c,d,cnt, err]=sscanf("1 abcdefg 3\n","%d %s %d %d","C")
a = 1
b = abcdefg
c = 3
d = [](0x0)
cnt = 3
err = %s: read error: sscanf



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63462>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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