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

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

[Octave-bug-tracker] [bug #54892] sscanf %1c returns more than one chara


From: Michael Leitner
Subject: [Octave-bug-tracker] [bug #54892] sscanf %1c returns more than one character
Date: Sun, 28 Oct 2018 15:59:18 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #2, bug #54892 (project octave):

I'd say this is a problem in the documentation. The behaviour expected by the
initial comment is achieved when you invoke sscanf with "C". So this is the
"second form" according to https://octave.org/doc/v4.4.1/Formatted-Input.html.
But even there it says that each conversion specifier corresponds to a single
scalar return value. In
https://octave.org/doc/v4.4.1/Input-Conversion-Syntax.html the "maximum field
width" is defined, and explicitly referenced under the documentation of the
"%c" conversion specification
https://octave.org/doc/v4.4.1/Table-of-Input-Conversions.html. But seemingly
this is considered only with "C", which however is indeed not mentioned there.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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