首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::fgetws

Defined in header <cwchar>

?

?

wchar_t* fgetws( wchar_t* str, int count, std::FILE* stream );

?

?

最多读count - 1来自给定文件流的宽字符,并将它们存储在str产生的宽字符串总是以空结尾。如果发生文件结束或发现换行符,则解析停止,在这种情况下,将停止解析。str将包含那个宽换行符。

参数

str

-

wide string to read the characters to

count

-

the length of str

stream

-

file stream to read the data from

返回值

str在成功的时候,NULL关于一个错误。

另见

wscanffwscanfswscanf

reads formatted wide character input from stdin, a file stream or a buffer (function)

fgetwcgetwc

gets a wide character from a file stream (function)

fputws

writes a wide string to a file stream (function)

c为fgetws编写的文件

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com