|
602 | 602 | assigns \tcode{c} to
|
603 | 603 | \tcode{*pnext++}.
|
604 | 604 |
|
605 |
| -\pnum |
606 | 605 | Returns
|
607 | 606 | \tcode{(unsigned char)c}.
|
| 607 | + |
608 | 608 | \item
|
609 | 609 | If
|
610 | 610 | \tcode{c == EOF},
|
611 | 611 | there is no character to append.
|
612 | 612 |
|
613 |
| -\pnum |
614 | 613 | Returns a value other than \tcode{EOF}.
|
615 | 614 | \end{itemize}
|
616 | 615 |
|
|
679 | 678 | \tcode{gnext - 1}
|
680 | 679 | to \tcode{gnext}.
|
681 | 680 |
|
682 |
| -\pnum |
683 | 681 | Returns \tcode{c}.
|
684 | 682 | \item
|
685 | 683 | If
|
|
689 | 687 | assigns \tcode{c} to
|
690 | 688 | \tcode{*\dcr{}gnext}.
|
691 | 689 |
|
692 |
| -\pnum |
693 | 690 | Returns
|
694 | 691 | \tcode{c}.
|
695 | 692 | \item
|
|
700 | 697 | \tcode{gnext - 1}
|
701 | 698 | to \tcode{gnext}.
|
702 | 699 |
|
703 |
| -\pnum |
704 | 700 | Returns a value other than
|
705 | 701 | \tcode{EOF}.
|
706 | 702 | \end{itemize}
|
|
745 | 741 | assigning to \tcode{gend} a value greater than \tcode{gnext} and
|
746 | 742 | no greater than \tcode{pnext}.
|
747 | 743 |
|
748 |
| -\pnum |
749 | 744 | Returns \tcode{(unsigned char*)gnext}.
|
750 | 745 | \end{itemize}
|
751 | 746 |
|
|
801 | 796 | \tcode{way == ios::cur} &
|
802 | 797 | the next pointer minus the beginning pointer (\tcode{xnext - xbeg}). \\ \rowsep
|
803 | 798 | \tcode{way == ios::end} &
|
804 |
| - \tcode{seekhigh} minus the beginning pointer (\tcode{seekhigh - xbeg}).\\ \rowsep |
805 |
| -If \tcode{(newoff + off) <}\br |
806 |
| -\tcode{(seeklow - xbeg)},\br |
807 |
| -or \tcode{(seekhigh - xbeg) <}\br |
808 |
| -\tcode{(newoff + off)} & |
809 |
| - the positioning operation fails \\ |
| 799 | + \tcode{seekhigh} minus the beginning pointer (\tcode{seekhigh - xbeg}). \\ |
810 | 800 | \end{libtab2}
|
811 | 801 |
|
812 | 802 | \pnum
|
| 803 | +If \tcode{(newoff + off) < (seeklow - xbeg)} |
| 804 | +or \tcode{(seekhigh - xbeg) < (newoff + off)}, |
| 805 | +the positioning operation fails. |
813 | 806 | Otherwise, the function assigns
|
814 |
| -\tcode{xbeg} + \tcode{newoff} + \tcode{off} |
| 807 | +\tcode{xbeg + newoff + off} |
815 | 808 | to the next pointer \tcode{xnext}.
|
816 | 809 |
|
817 | 810 | \pnum
|
|
851 | 844 | positions the output sequence.
|
852 | 845 | \item
|
853 | 846 | If the function positions neither sequence, the positioning operation fails.
|
| 847 | +\end{itemize} |
854 | 848 |
|
855 | 849 | \pnum
|
856 | 850 | For a sequence to be positioned, if its next pointer is a null pointer,
|
857 | 851 | the positioning operation fails.
|
858 | 852 | Otherwise, the function determines \tcode{newoff} from
|
859 | 853 | \tcode{sp.offset()}:
|
| 854 | +\begin{itemize} |
860 | 855 | \item
|
861 | 856 | If \tcode{newoff} is an invalid stream position,
|
862 | 857 | has a negative value, or
|
|
0 commit comments