3 /* fsetpos( FILE *, const fpos_t * )
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>
14 int fsetpos( struct _PDCLIB_file_t * stream, const struct _PDCLIB_fpos_t * pos )
16 if ( stream->status & _PDCLIB_FWRITE )
18 if ( _PDCLIB_flushbuffer( stream ) == EOF )
23 if ( _PDCLIB_seek( stream, pos->offset, SEEK_SET ) == EOF )
27 stream->pos.status = pos->status;
34 #include <_PDCLIB_test.h>
38 TESTCASE( NO_TESTDRIVER );