shithub: riscv

ref: f2716ab22742ecccafea28948e03ddd71f419829
dir: /sys/src/ape/lib/ap/stdio/fileno.c/

View raw version
/*
 * Posix stdio -- fileno
 */
#include "iolib.h"
int fileno(FILE *f){
	if(f==NULL)
		return -1;
	else
		return f->fd;
}