3 /* int64_t _PDCLIB_seek( FILE *, int64_t, int )
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
12 #include <_PDCLIB_glue.h>
15 extern void _PDCLIB_w32errno( void );
16 _PDCLIB_int64_t _PDCLIB_seek( struct _PDCLIB_file_t * stream, _PDCLIB_int64_t offset, int whence )
18 LARGE_INTEGER liOffset;
19 liOffset.QuadPart = offset;
20 BOOL rv = SetFilePointerEx( stream->handle, liOffset, &liOffset, whence );
25 stream->pos.offset = liOffset.QuadPart;
26 return liOffset.QuadPart;
32 #include <_PDCLIB_test.h>
36 /* Testing covered by ftell.c */