source:
trunk/sys/dietlibc/fgetpos.c
@
197
Last change on this file since 197 was 1, checked in by , 8 years ago | |
---|---|
File size: 133 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <stdio.h> |
2 | ||
3 | int fgetpos(FILE *stream, fpos_t *pos) { | |
4 | long l=ftell(stream); | |
5 | if (l==-1) return -1; | |
6 | *pos=l; | |
7 | return 0; | |
8 | } |
Note: See TracBrowser
for help on using the repository browser.