shithub: riscv

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