1 /* int64_t _PDCLIB_seek( FILE *, int64_t, int )
\r
3 This file is part of the Public Domain C Library (PDCLib).
\r
4 Permission is granted to use, modify, and / or redistribute at will.
\r
11 #include <_PDCLIB_io.h>
\r
13 int_fast64_t _PDCLIB_seek( FILE * stream,
\r
14 int_fast64_t offset,
\r
17 int_fast64_t newPos;
\r
18 if(!stream->ops->seek(stream->handle, offset, whence, &newPos)) {
\r
22 stream->ungetidx = 0;
\r
25 stream->pos.offset = newPos;
\r
32 #include <_PDCLIB_test.h>
\r
36 /* Testing covered by ftell.c */
\r
37 return TEST_RESULTS;
\r