#if 0 #include /** set the file position indicator **/ int fseek(FILE *stream, long int offset, int whence) { (void)stream; (void)offset; if (whence == SEEK_CUR) { } else if (whence == SEEK_END) { } else if (whence == SEEK_SET) { } return 1; } /*** sets the file position indicator for ARGUMENT(stream). How the indicator is set is determined by ARGUMENT(whence): FLAG(CONSTANT(SEEK_SET), The indicator is set to the beginning of the file plus ARGUMENT(offset)) FLAG(CONSTANT(SEEK_CUR), The indicator is advanced from its current position by ARGUMENT(offset), which may be negative) FLAG(CONSTANT(SEEK_END), The indicator is set to the end of the file minus ARGUMENT(offset)) A successful call to fn(fseek) clears the end-of-file indicator and discards any characters pushed with fn(ungetc). ***/ /* UNDEFINED(Specifying CONSTANT(SEEK_END) for ARGUMENT(whence) on a binary file) UNDEFINED(Specifying a value for ARGUMENT(offset) other than 0 or a previous return value of FUNCTION(ftell) on a text file) STDC(1) */ #endif