shithub: riscv

ref: 28057f67a04fc9e666cdb698d811c9d26c94f28c
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;
}