shithub: riscv

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