strxfrm
De 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. |
<metanoindex/>
<tbody> </tbody>| Déclaré dans l'en-tête <string.h>
|
||
size_t strxfrm( const char *dest, const char *src, size_t count ); |
||
Transforme la chaîne d'octets terminée par zéro pointé par
src en fonction de la localisation en cours et copie les caractères count premiers la chaîne transformée à destination, de retour de sa longueur .Original:
Transforms the null-terminated byte string pointed to by
src according to the current locale and copies the first count characters of the transformed string to destination, returning its length.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.
Alternativelly, la fonction peut être utilisée pour récupérer uniquement la longueur, en spécifiant un pointeur NULL pour
dest et 0 pour count .Original:
Alternativelly, the function can be used to only retrieve the length, by specifying a null pointer for
dest and 0 for count.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.
Paramètres
| dest | - | pointeur vers la chaîne d'octets à copier la chaîne transformée de
Original: pointer to the byte string to copy the transformed string to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| src | - | pointeur vers la chaîne d'octets terminée par NULL à transformer
Original: pointer to the null-terminated byte string to transform The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| count | - | nombre maximum de caractères pour transformer
Original: maximum number of characters to transform The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Retourne la valeur
La longueur de la chaîne transformée, non compris le caractère de fin NULL .
Original:
The length of the transformed string, not including the terminating null-character.
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.
Exemple
| This section is incomplete Reason: no example |
Voir aussi
C++ documentation for strxfrm
|