shithub: riscv

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