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: Sat, 3 Dec 2022 10:58:05 -0500 (EST)

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

                 Summary: sscanf reports incorrect number of output values.
                 Project: GNU Octave
               Submitter: None
               Submitted: Sat 03 Dec 2022 03:58:03 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Reinhard
        Originator Email: octave-user@a1.net
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 03 Dec 2022 03:58:03 PM UTC By: Anonymous
If you run this code in octave-9.0.0

[a,b,c,d,n]=sscanf("1 abcdefg 3\n","%d %s %g %g","C")

you get

a = 1
b = abcdefg
c = 3
d = 3
n = 4


In octave-6.4.0 the output was

a = 1
b = abcdefg
c = 3
d = [](0x0)
n = 3


So, with octave-9.0.0 incorrectly reported four values instead of three.







    _______________________________________________________

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]