Title
Extractors for char* should store null at end
Status
tc1
Section
[istream.extractors]
Submitter
Angelika Langer

Created on 1998-07-14.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

[istream::extractors], paragraph 7, change the last list item from:

A null byte (charT()) in the next position, which may be the first position if no characters were extracted.

to become a new paragraph which reads:

Operator>> then stores a null byte (charT()) in the next position, which may be the first position if no characters were extracted.

Date: 1998-07-14.00:00:00

Extractors for char* (27.6.1.2.3) do not store a null character after the extracted character sequence whereas the unformatted functions like get() do. Why is this?

Comment from Jerry Schwarz: There is apparently an editing glitch. You'll notice that the last item of the list of what stops extraction doesn't make any sense. It was supposed to be the line that said a null is stored.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg157
1998-07-14 00:00:00admincreate