shithub: riscv

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