|
| From: | anonymous |
| Subject: | [Octave-bug-tracker] [bug #54892] sscanf %1c returns more than one character |
| Date: | Wed, 24 Oct 2018 12:44:30 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?54892>
Summary: sscanf %1c returns more than one character
Project: GNU Octave
Submitted by: None
Submitted on: Wed 24 Oct 2018 04:44:29 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name: Uli Wortmann
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: GNU/Linux
_______________________________________________________
Details:
If I use
g="Hello World"
and then
h=sscanf(g,"%1c")
h equals "Hello World"
The expected result would "H"
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54892>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |