shithub: riscv

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