◐ Shell
clean mode source ↗

strlen - 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.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<string.h>

size_t strlen( char *str );

Restituisce la lunghezza della stringa di byte dato.

Original:

Returns the length of the given byte string.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parametri

str -

puntatore alla stringa con terminazione null byte da esaminare

Original:

pointer to the null-terminated byte string to be examined

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valore di ritorno

La lunghezza della stringa null-terminated str.

Original:

The length of the null-terminated string str.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Esempio

Vedi anche