Rev 647 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
647 | andrew_pro | 1 | #include |
2 | int fsetpos(FILE* file,const fpos_t * pos) |
||
3 | { |
||
6433 | siemargl | 4 | if(!file || !pos) |
5 | { |
||
6 | errno = E_INVALIDPTR; |
||
7 | return errno; |
||
8 | } |
||
9 | |||
647 | andrew_pro | 10 | if (*pos>=0) |
11 | { |
||
12 | file->filepos=*pos; |
||
13 | return 0; |
||
14 | } |
||
15 | else |
||
16 | return EOF; |
||
6433 | siemargl | 17 | } |