The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ostream::seekp
ostream                                     Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  ostream& seekp( streampos pos );
  ostream& seekp( streamoff off, ios::seek_dir dir );
 
  Parameter   Description
 
  <pos>       The new position value; streampos is a typedef equivalent to
              long.
 
  <off>       The new offset value; streamoff is a typedef equivalent to
              long.
 
  <dir>       The seek direction specified by the enumerated type
              ios::seek_dir, as follows:
 
              Value      Meaning
 
              ios::beg   Seek from the beginning of the stream.
 
              ios::cur   Seek from the current position in the stream.
 
              ios::end   Seek from the end of the stream.
 
  Remarks
 
  Changes the position value for the stream. Not all derived classes of
  ostream need support positioning. For file streams, the position is the
  byte offset from the beginning of the file; for string streams, it is
  the byte offset from the beginning of the string.
 
  See Also
 
  ostream::tellp, istream::seekg, istream::tellg
 
 
                                     -♦-