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