shithub: riscv

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