svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
getwc(3c)
getwc(3C) Standard C Library Functions getwc(3C)
NAME
getwc - get wide character from a stream
SYNOPSIS
#include <stdio.h>
#include <wchar.h>
wint_t getwc(FILE *stream);
DESCRIPTION
The getwc() function is equivalent to fgetwc(3C), except that if it is
implemented as a macro it may evaluate stream more than once, so the
argument should never be an expression with side effects.
RETURN VALUES
Refer to fgetwc(3C).
ERRORS
Refer to fgetwc(3C).
USAGE
Because it may be implemented as a macro, getwc() may treat incorrectly
a stream argument with side effects. In particular, getwc(*f++) may not
work as expected. Therefore, use of this function is not recommended;
fgetwc(3C) should be used instead.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.2i) |cw(3.3i) lw(2.2i) |lw(3.3i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ StandardT{
C95 through C11,
POSIX.1-2001 through 2008,
SUS through SUSv4,
XPG4 through XPG7
T} _ MT-LevelMT-Safe
SEE ALSO
fgetwc(3C), attributes(7), standards(7)
HISTORY
The getwc() macro was added to <widec.h> in the Solaris 2.0 release.
The getwc() function was added to libw and <wchar.h> in the Solaris 2.4
release. In Solaris 2.4 and 2.5, the function was located in the libw
library. In Solaris 2.6 and later, it is located in libc.
Oracle Solaris 11.4 25 Nov 2024 getwc(3C)