shithub: riscv

ref: 3bf49f18142a5d37bd5507d7491ba4eb223eb3b1
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;
}