#include <stdio.h> int getw(FILE *stream); int putw(int w, FILE *stream);
glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):
getw(), putw():
Since glibc 2.3.3:
_XOPEN_SOURCE && ! (_POSIX_C_SOURCE >= 200112L)
|| /* glibc >= 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
Before glibc 2.3.3:
_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE
putw() writes the word w (that is, an int) to stream. It is provided for compatibility with SVr4, but we recommend you use fwrite(3) instead.
| インターフェース | 属性 | 値 |
| getw(), putw() | Thread safety | MT-Safe |