shithub: riscv

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