cmacrosstdin

What's the int macro for stdin?


stdin is of type FILE *,

is there a fd macro for it?

Or do I need to convert it myself?


Solution

  • STDIN_FILENO from unistd.h