std::wmemset - cppreference.com
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>
| Elemento definito nell'header <cwchar> |
||
|
|
||
Copie ch caratteri larghi in ciascuno dei primi count caratteri estesi dell'oggetto puntato da dest. Se l'oggetto non è banalmente-copiabile (ad esempio, scalare, un array o un C-compatibile struct), il comportamento è indefinito. Se i punti dest+size+1 fuori l'oggetto, il comportamento non è definito.
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.
Parametri
| dest | - | puntatore all'oggetto da riempire Original: pointer to the object to fill The text has been machine-translated via Google Translate. |
| ch | - | riempire byte Original: fill byte The text has been machine-translated via Google Translate. |
| count | - | numero di byte da riempire Original: number of bytes to fill The text has been machine-translated via Google Translate. |
Valore di ritorno
dest
Esempio
#include <iostream> #include <cwchar> int main() { int a[20]; std::memset(a, 0, sizeof(a)); std::cout << "a[0] = " << a[0] << '\n'; }
Output:
Vedi anche
copia un certo numero di caratteri estesi tra due matrici non si sovrappongono Original: copies a certain amount of wide characters between two non-overlapping arrays The text has been machine-translated via Google Translate. (funzione) [modifica] | |
assegna un valore a un numero di elementi Original: assigns a value to a number of elements The text has been machine-translated via Google Translate. (funzione di modello) [modifica] | |
(C++11) |
checks if a type is trivially copyable (classe template) [modifica] |
C documentation for wmemset | |