词条 | putc |
释义 | 功 能: 输出一字符到指定流中 用 法: int putc(int ch, FILE *stream); putc()与fputc()等价。不同之处为:当putc函数被定义为宏时,它可能多次计算stream的值。 程序例: #include <stdio.h> int main(void) { char msg[] = "Hello world\"; int i = 0; while (msg[i]) putc(msg[i++],stdout); return 0; } |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。