shithub: riscv

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