Skip to content

Commit

Permalink
[stringbuf.virtuals] Rephrase DR 453 resolution for seekoff
Browse files Browse the repository at this point in the history
This avoids the requirement to compare newoff to zero when the value of
newoff hasn't been determined.
  • Loading branch information
jwakely authored and zygoloid committed Oct 15, 2017
1 parent 776fea1 commit af40423
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/iostreams.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7676,14 +7676,16 @@
\end{libtab2}

\pnum
For a sequence to be positioned, if its next pointer
For a sequence to be positioned,
the function determines \tcode{newoff} as indicated in
Table~\ref{tab:iostreams.newoff.values}.
If the sequence's next pointer
(either
\tcode{gptr()}
or
\tcode{pptr()})
is a null pointer and the new offset \tcode{newoff} is nonzero, the positioning
operation fails. Otherwise, the function determines \tcode{newoff} as indicated in
Table~\ref{tab:iostreams.newoff.values}.
is a null pointer and \tcode{newoff} is nonzero,
the positioning operation fails.

\begin{libtab2}{\tcode{newoff} values}{tab:iostreams.newoff.values}
{lp{2.0in}}{Condition}{\tcode{newoff} Value}
Expand Down

0 comments on commit af40423

Please sign in to comment.