fputc()与putc():输出一字符到指定流中。
对于fputc():
fputc(char ch, FILE * fp):在fp所指向的文件的当前文件写入一个字符, 写入成功返回写入的字符的ASII吗, 否则返回EOF。
fputc()与putc()的功能与用法一样。
以为为putc()不同于fputc()的例子:
#include <stdio.h>
int main(void)
{
char msg[] = "Hello world\n";
int i = 0;
while (msg[i])
putc(msg[i++],stdout);
return 0;
}