shithub: riscv

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