ref: f59ef5e8e7661dc06924bf8fea625ae69d59e40e dir: /sys/src/libstdio/fgetpos.c/
/* * pANS stdio -- fgetpos */ #include "iolib.h" int fgetpos(FILE *f, fpos_t *pos){ *pos=ftell(f); return *pos==-1?-1:0; }