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编写的文件
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

