source:
trunk/sys/dietlibc/fgetpos.c
@
428
Last change on this file since 428 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.