Nij*_*tje 1 c io output
我有一个可以包含NULL字符的字符数组. 该数组不是以null结尾的,但我确实知道它的长度.
问题 如何输出这个确切的数组(包括空字符)和其他任何内容(没有尾随\n)到stdout?不幸的是,我不允许一次输出一个字符.
Cha*_*rns 5
char buffer[SIZE]; if(fwrite(buffer, 1, SIZE, stdout) != SIZE) { perror("fwrite"); }
归档时间:
12 年,1 月 前
查看次数:
1831 次
最近记录: