[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51794] fscanf return empty result when trying
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #51794] fscanf return empty result when trying to read long ints in "C-like" form |
Date: |
Sat, 19 Aug 2017 14:17:04 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?51794>
Summary: fscanf return empty result when trying to read long
ints in "C-like" form
Project: GNU Octave
Submitted by: None
Submitted on: Sat 19 Aug 2017 06:17:02 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.3
Operating System: GNU/Linux
_______________________________________________________
Details:
fscanf(stdin, "%ld", 1) will read integers exceeding 2^32 correctly. For
example with 9007199254740991 it'll return:
ans = 9.0072e+15
while fscanf(stdin, "%ld", "C") will return ans = [](0x0).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51794>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51794] fscanf return empty result when trying to read long ints in "C-like" form,
anonymous <=