shithub: riscv

ref: 49b5472ee7b434f3c56af4a14d4907207f8ed1ad
dir: /sys/src/libstdio/fileno.c/

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