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 fgetpos(FILE* file,fpos_t* pos) |
2 | int fgetpos(FILE* file,fpos_t* pos) |
3 | { |
3 | { |
- | 4 | if(!file || !pos) |
|
- | 5 | { |
|
- | 6 | errno = E_INVALIDPTR; |
|
- | 7 | return EOF; |
|
- | 8 | } |
|
- | 9 | ||
4 | *pos=file->filepos; |
10 | *pos=file->filepos; |
5 | return 0; |
11 | return 0; |
6 | } |
12 | } |
7 | 13 |