关于函数库中函数getchar()

来源:互联网 发布:java调用http post接口 编辑:程序博客网 时间:2024/05/17 20:30

./stdio.h:520:extern int getchar (void);

vim bits/stdio.h +45

/* Read a character from stdin.  */
__STDIO_INLINE int
getchar (void)
{
  return _IO_getc (stdin);
}
==================================

./libio.h:460:extern int _IO_getc (_IO_FILE *__fp);

./stdio.h:525:#define getc(_fp) _IO_getc (_fp)

/* The C standard explicitly says this is a macro, so we always do the
   optimization for it.  */
#define getc(_fp) _IO_getc (_fp)

==================================



 

原创粉丝点击