git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
crtdll
/
stdio
/
fsetpos.c
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
#include <crtdll/stdio.h>
3
#include <crtdll/errno.h>
4
#include <crtdll/internal/file.h>
5
6
int
7
fsetpos(FILE *stream,const fpos_t *pos)
8
{
9
if (stream && pos)
10
{
11
fseek(stream, (long)(*pos), SEEK_SET);
12
return 0;
13
}
14
__set_errno(EFAULT);
15
return -1;
16
}