Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 647 Rev 6433
Line 1... Line 1...
1
#include 
1
#include 
2
int fsetpos(FILE* file,const fpos_t * pos)
2
int fsetpos(FILE* file,const fpos_t * pos)
3
{
3
{
-
 
4
    if(!file || !pos)
-
 
5
    {
-
 
6
        errno = E_INVALIDPTR;
-
 
7
        return errno;
-
 
8
    }
-
 
9
 
4
	if (*pos>=0)
10
	if (*pos>=0)
5
	{
11
	{
6
  		file->filepos=*pos;
12
  		file->filepos=*pos;
7
		return 0;
13
		return 0;
8
	}
14
	}