shithub: riscv

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