strncmp
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. |
Elemento definito nell'header <string.h> | ||
int strncmp(constchar*lhs, constchar*rhs, size_t count ); | ||
Confronta a personaggi più
count
di due stringhe con terminazione null byte. Il confronto è fatto lessicografico.Original:
Compares at most
count
characters of two null-terminated byte strings. The comparison is done lexicographically.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.
Indice |
[modifica]Parametri
lhs, rhs | - | puntatori alle stringhe con terminazione null byte da confrontare Original: pointers to the null-terminated byte strings to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
count | - | il numero massimo di caratteri da confrontare Original: maximum number of characters to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica]Valore di ritorno
Valore negativo se
lhs
è menorhs
.Original:
Negative value if
lhs
is less thanrhs
.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.
0 se
lhs
è pari arhs
.Original:
0 if
lhs
is equal torhs
.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.
Valore positivo se
lhs
è superiorerhs
.Original:
Positive value if
lhs
is greater thanrhs
.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.
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]Vedi anche
confronta due stringhe Original: compares two strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
mette a confronto due buffer Original: compares two buffers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
confronta due stringhe in accordo con i parametri locali Original: compares two strings in accordance to the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
C++ documentation for strncmp |