std::wmemset
Aus cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
definiert in Header <cwchar>
|
||
wchar_t* wmemset( wchar_t* dest, wchar_t ch, std::size_t count ); |
||
Kopien Breitzeichen
ch
in jede der ersten count
breite Zeichen des Objekts, auf das dest
. Wenn das Objekt nicht trivial kopierbaren (zB Skalar, Array oder ein C-kompatiblen struct), ist das Verhalten undefiniert. Wenn dest+size+1 Punkte außerhalb des Objekts, ist das Verhalten undefiniert .Original:
Copies wide character
ch
into each of the first count
wide characters of the object pointed to by dest
. If the object is not trivially-copyable (e.g., scalar, array, or a C-compatible struct), the behavior is undefined. If dest+size+1 points outside the object, the behavior is undefined.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
dest | - | Zeiger auf das Objekt zu füllen
Original: pointer to the object to fill The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ch | - | Füllen Byte
Original: fill byte The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
count | - | Anzahl von Bytes zu füllen
Original: number of bytes to fill The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[Bearbeiten] Rückgabewert
dest
[Bearbeiten] Beispiel
#include <iostream> #include <cwchar> int main() { int a[20]; std::memset(a, 0, sizeof(a)); std::cout << "a[0] = " << a[0] << '\n'; }
Output:
a[0] = 0
[Bearbeiten] Siehe auch
kopiert eine gewisse breiten Zeichen zwischen zwei nichtüberlappenden Arrays Original: copies a certain amount of wide characters between two non-overlapping arrays The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
weist einen Wert auf eine Reihe von Elementen Original: assigns a value to a number of elements The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) | |
(C++11) |
checks if a type is trivially copyable (Klassen-Template) |
C documentation for wmemset
|