blob: d2a451fd07422018372520ab1ef2ba44c401fa5f [file] [log] [blame] [raw]
/*
* This file has no copyright assigned and is placed in the Public Domain.
* No warranty is given.
*
* Written by PC GO
*
*/
#include <stdio.h>
#include <io.h>
#ifdef fileno
#error "fileno macro defined"
#endif
int fileno(FILE *f) {
return (int)_get_osfhandle(f->_file);
}