shithub: riscv

ref: ff1f02c31615450c31163df752fcab74567ad322
dir: /sys/src/ape/lib/ap/stdio/fileno.c/

View raw version
/*
 * Posix stdio -- fileno
 */
#include "iolib.h"
int fileno(FILE *f){
	if(f==NULL)
		return -1;
	else
		return f->fd;
}