shithub: riscv

ref: 2247741fe0c788d5a48bca3f3aca02c5a3b8dcb2
dir: /sys/src/libstdio/fgetpos.c/

View raw version
/*
 * pANS stdio -- fgetpos
 */
#include "iolib.h"
int fgetpos(FILE *f, fpos_t *pos){
	*pos=ftell(f);
	return *pos==-1?-1:0;
}