std1.0.0-beta-7 SafeC docs

std :: io_traits

Trait std::Seekable

#include <std/io_traits.h> source

trait Seekable {
    int seek(long long offset, int whence);
    long long tell();
}

Required methods

§int seek(long long offset, int whence)source

Moves to 'offset' from 'whence' (0 = start, 1 = current, 2 = end). 0 on success.

§long long tell()source

The current offset, -1 on error.