/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ #include #include int fsetpos(FILE *stream, const fpos_t *pos) { if (stream && pos) { return fseek(stream, (long)(*pos), SEEK_SET); } errno = EFAULT; return -1; }