shithub: riscv

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