Rev 6433 | 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; |
||
7184 | siemargl | 13 | file->ungetc_buf = EOF; |
647 | andrew_pro | 14 | return 0; |
15 | } |
||
16 | else |
||
17 | return EOF; |
||
6433 | siemargl | 18 | } |