2007-10-15 11:42:17 +02:00
|
|
|
#include <stdio.h>
|
2006-09-07 16:14:53 +02:00
|
|
|
int fsetpos(FILE* file,const fpos_t * pos)
|
|
|
|
{
|
2016-05-19 14:15:22 +02:00
|
|
|
if(!file || !pos)
|
|
|
|
{
|
|
|
|
errno = E_INVALIDPTR;
|
|
|
|
return errno;
|
|
|
|
}
|
|
|
|
|
2006-09-07 16:14:53 +02:00
|
|
|
if (*pos>=0)
|
|
|
|
{
|
|
|
|
file->filepos=*pos;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
return EOF;
|
2016-05-19 14:15:22 +02:00
|
|
|
}
|