阅读背景:

使用字符数组(非空终止)c/c++写入stdout

来源:互联网 

What's the most straightforward way to write to stdout using a character array? I want to output a slice of a much larger array, and the slice is not null-terminated. I want to avoid copying the slice to a "proper" null-terminated c-string.What's the most straightforward way to write to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: