SyntaxFix
Write A Post
Hire A Developer
Questions
The proper function is int fileno(FILE *stream). It can be found in <stdio.h>, and is a POSIX standard but not standard C.
int fileno(FILE *stream)
<stdio.h>