NAME

zkFileno - map a stream pointer to a file descriptor

SYNOPSIS

#include "zkStdio.h"

int zkFileno(FILE* stream);

DESCRIPTION

The zkFileno() function returns the integer file descriptor associated with the stream pointed to by stream.

RETURN VALUE

Upon successful completion, zkFileno() returns the integer value of the file descriptor associated with stream. Otherwise, the value -1 is returned and errno is set to indicate the error.

ERRORS

The zkFileno() function may fail if:

[EBADF]
The stream argument is not a valid stream.