Added binary and unicode file i/o support to msvcrt.
[reactos.git] / reactos / lib / crtdll / stdio / fsetpos.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/errno.h>
4 #include <msvcrt/internal/file.h>
5
6 int fsetpos(FILE *stream,const fpos_t *pos)
7 {
8 if (stream && pos)
9 {
10 fseek(stream, (long)(*pos), SEEK_SET);
11 return 0;
12 }
13 __set_errno(EFAULT);
14 return -1;
15 }