svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
wmemmove_s(3c)
wmemmove(3C) Standard C Library Functions wmemmove(3C)
NAME
wmemmove, wmemmove_s - copy wide-characters in memory with overlapping
areas
SYNOPSIS
#include <wchar.h>
wchar_t *wmemmove(wchar_t *ws1, const wchar_t *ws2, size_t n);
#define __STDC_WANT_LIB_EXT1__ 1
#include <wchar.h>
errno_t wmemmove_s(wchar_t *ws1, rsize_t ws1max,
const wchar_t *ws2, rsize_t n);
DESCRIPTION
The wmemmove() function copies n wide-characters from the object
pointed to by ws2 to the object pointed to by ws1. Copying takes place
as if the n wide-characters from the object pointed to by ws2 are first
copied into a temporary array of n wide-characters that does not over‐
lap the objects pointed to by ws1 or ws2, and then the n wide-charac‐
ters from the temporary array are copied into the object pointed to by
ws1.
This function is not affected by locale and all wchar_t values are
treated identically. The null wide-character and wchar_t values not
corresponding to valid characters are not treated specially.
If n is 0, ws1 and ws2 must be valid pointers, and the function copies
zero wide-characters.
The wmemmove_s() function is part of the C11 bounds checking interfaces
specified in the C11 standard, Annex K. It provides similar functional‐
ity to the wmemmove() function, except for additional checks on the pa‐
rameters passed and explicit runtime constraints as defined in the C11
standard. See runtime_constraint_handler(3C) and INCITS/ISO/IEC
9899:2011.
RETURN VALUES
The wmemmove() function returns the value of ws1.
If no runtime constraint violation is detected, the wmemmove_s() func‐
tion returns 0, otherwise, it returns a non-zero value.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelSee below _
StandardSee below
MT-Level
The wmemmove() function is MT-Safe.
The wmemmove_s() function cannot be used safely in a multithreaded ap‐
plication due to the runtime constraint handler. For more information,
see the runtime_constraint_handler(3C) man page.
Standard
See standards(7) for descriptions of the following standards:
tab() box; cw(2.44i) |cw(3.06i) lw(2.44i) |lw(3.06i) INTERFACESAPPLICA‐
BLE STANDARDS _ wmemmove()T{
C95 through C11,
POSIX.1-2001 through 2008,
SUS through SUSv4,
XPG4 through XPG7
T} _ wmemmove_s()C11
SEE ALSO
wmemchr(3C), wmemcmp(3C), wmemcpy(3C), wmemset(3C), attributes(7),
standards(7)
Handling Characters and Character Strings in Internationalizing and Lo‐
calizing Applications in Oracle Solaris
HISTORY
The wmemmove_s() function was added to Solaris in the Oracle Solaris
11.4.0 release.
The wmemmove() function was added to Solaris in the Solaris 7 release.
Oracle Solaris 11.4 25 Nov 2024 wmemmove(3C)