fputws

Section: C Library Functions (3)
Updated: 2026-02-08
Index JM Home Page roff page
 

名前

fputws - ワイド文字の文字列を FILE ストリームに書き込む  

ライブラリ

標準 C ライブラリ (libc,~-lc)  

書式

#include <wchar.h>

int fputws(const wchar_t *restrict ws, FILE *restrict stream);
 

説明

The fputws() function is the wide-character equivalent of the fputs(3) function. It writes the wide-character string starting at ws, up to but not including the terminating null wide character (L'\0'), to stream.

これらの処理を停止せずに行いたいときは、 unlocked_stdio(3) を参照のこと。  

返り値

fputws() は、操作が成功した時には負でない整数値を返す。エラーの時 には -1 を返す。  

属性

この節で使用されている用語の説明については、 attributes(7) を参照。
インターフェース属性値
fputws() Thread safetyMT-Safe
 

標準規格

C11, POSIX.1-2008.  

歴史

POSIX.1-2001, C99.  

注意

fputws() の動作は、現在のロケールの LC_CTYPE カテゴリーに依存する。

fopen(3) システムコールに渡す追加情報がない場合には、 fputws() が実際 にはワイド文字の文字列である ws に対応するマルチバイトシーケンス を書き込むと期待することは適切である。  

関連項目

fputwc(3), unlocked_stdio(3)


 

Index

名前
ライブラリ
書式
説明
返り値
属性
標準規格
歴史
注意
関連項目

This document was created by man2html, using the manual pages.