kolibrios-fun/programs/develop/ktcc/trunk/libc/stdio/fsetpos.c
siemargl ace23ebbe2 libc testsuite + fixes
git-svn-id: svn://kolibrios.org@6433 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-05-19 12:15:22 +00:00

18 lines
246 B
C

#include <stdio.h>
int fsetpos(FILE* file,const fpos_t * pos)
{
if(!file || !pos)
{
errno = E_INVALIDPTR;
return errno;
}
if (*pos>=0)
{
file->filepos=*pos;
return 0;
}
else
return EOF;
}