函数名: getc
功 能: 从流中取字符
用 法: #include <stdio.h>
int getc(FILE *stream);
程序例:
#include <stdio.h>
int main(void)
{
char ch;
printf("Input a character:");
/* read a character from the
standard input stream */
ch = getc(stdin);
printf("The character input was: '%c'\n",
ch);
return 0;
}