source: trunk/sys/dietlibc/fgetpos.c @ 339

Last change on this file since 339 was 1, checked in by alain, 8 years ago

First import

File size: 133 bytes
Line 
1#include <stdio.h>
2
3int 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.