]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libstdio/fgetpos.c
dpost prologue: update /radicalex to fix square displacement (thanks umbraticus and...
[plan9front.git] / sys / src / libstdio / fgetpos.c
1 /*
2  * pANS stdio -- fgetpos
3  */
4 #include "iolib.h"
5 int fgetpos(FILE *f, fpos_t *pos){
6         *pos=ftell(f);
7         return *pos==-1?-1:0;
8 }