git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9bb8e56ca27964f7ee94b37d1c74d156dab404f0
[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
/*
7
* @implemented
8
*/
9
int fsetpos(FILE *stream,const fpos_t *pos)
10
{
11
if (stream && pos)
12
{
13
fseek(stream, (long)(*pos), SEEK_SET);
14
return 0;
15
}
16
__set_errno(EFAULT);
17
return -1;
18
}