]> pd.if.org Git - pdclib/blob - functions/stdio/fseek.c
ca0017cacfc02f1fbaaf259be15fd0ca90f1c4a1
[pdclib] / functions / stdio / fseek.c
1 /* $Id$ */
2
3 /* fseek( FILE *, long int, int )
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 #include <stdio.h>
10
11 #ifndef REGTEST
12
13 int fseek( struct _PDCLIB_file_t * stream, long int offset, int whence )
14 {
15     if ( stream->status & _PDCLIB_WROTELAST )
16     {
17         fflush( stream );
18     }
19     /* TODO: Implement. */
20     return 0;
21 }
22
23 #endif
24
25 #ifdef TEST
26 #include <_PDCLIB_test.h>
27
28 int main( void )
29 {
30     TESTCASE( NO_TESTDRIVER );
31     return TEST_RESULTS;
32 }
33
34 #endif