forked from KolibriOS/kolibrios
ace23ebbe2
git-svn-id: svn://kolibrios.org@6433 a494cfbc-eb01-0410-851d-a64ba20cac60
18 lines
246 B
C
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;
|
|
}
|