shithub: riscv

ref: ef17043327d999101009f85aae72f77399db15ac
dir: /sys/src/ape/lib/ap/stdio/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;
}