shithub: riscv

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