shithub: riscv

ref: 347bb2a7a7110e55debd5ebe57ba03bbe315c5ba
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;
}