开发者

What's the int macro for stdin?

开发者 https://www.devze.com 2023-03-17 04:26 出处:网络
stdin is of type FILE *, is开发者_如何学运维 there a fd macro for it? Or do I need to convert it myself?STDIN_FILENO from unistd.hfileno(stdin)The following are the integer file descriptors for the

stdin is of type FILE *,

is开发者_如何学运维 there a fd macro for it?

Or do I need to convert it myself?


STDIN_FILENO from unistd.h


fileno(stdin)


The following are the integer file descriptors for the standard streams:

  • 0: stdin
  • 1: stdout
  • 2: stderr
0

精彩评论

暂无评论...
验证码 换一张
取 消