git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
eb485576700053ecc6ec6c5368c30fdce74b958d
[reactos.git]
/
lib
/
msvcrt
/
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
}