ref: 2e05af858ec745ffc174e503148ef7928f697c22 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; }