fputws
來自 cppreference.com
在標頭檔案 <wchar.h> 中定義 |
||
int fputws( const wchar_t *str, FILE *stream ); |
(自 C95 起) (直到 C99) |
|
int fputws( const wchar_t * restrict str, FILE * restrict stream ); |
(C99 起) | |
將空終止的寬字串str
中的每個字元寫入輸出流stream
,就像重複執行fputwc一樣。
str
中的終止空寬字元不會被寫入。
目錄 |
[編輯] 引數
str | - | 要寫入的空終止寬字串 |
stream | - | 輸出流 |
[編輯] 返回值
成功時,返回非負值。
失敗時,返回EOF並設定stream
上的錯誤指示器(參見ferror)。
[編輯] 示例
執行此程式碼
輸出
御休みなさい