git: 9front

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