What's the int macro for stdin?

R__ picture R__ · Jul 5, 2011 · Viewed 12.4k times · Source

stdin is of type FILE *,

is there a fd macro for it?

Or do I need to convert it myself?

Answer

Nikolai Fetissov picture Nikolai Fetissov · Jul 5, 2011

STDIN_FILENO from unistd.h