String.h: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica
Fripp (discussione | contributi)
Nessun oggetto della modifica
Riga 5:
'''string.h''' è l'[[header file]] della [[libreria standard del C]] che contiene definizioni di macro, costanti e dichiarazioni di funzioni e tipi usati non solo nella manipolazione delle stringhe ma anche nella manipolazione della memoria.
 
Le funzioni dichiarate in ''string.h'' sono molto popolari ed essendo parte della libreria standard del C, il loro funzionamento è garantito su ogni piattaforma che supporta il linguaggio C. Tuttavia, l'esistenza di alcuni problemi di sicurezza con queste funzioni, come per esempio problemi di [[buffer overflow]], portano i programmatori a scegliere delle varianti più sicure ma meno portabili
 
<!--
Also, the string functions only work with [[ASCII]] or character sets that extend ASCII in a compatible manner such as [[ISO-8859-1]]; multibyte ASCII-compatible character sets such as [[UTF-8]] will work with the caveat that string "length" is to be interpreted as the count of bytes in the string rather than the count of [[Unicode]] characters. Non-ASCII compatible string handling is generally achieved through <code>[[wchar.h]]</code>.
-->
 
==ConstantsCostanti ande typestipi==
 
{| class="wikitable"
Line 16 ⟶ 17:
! Name !! Notes
|-
|<code>NULL</code> || Una macro che rappresenta la costante [[Puntatore (programmazione)#Il puntatore null|puntatore nullo]]; in altre parole, una costante che rappresenta un valore che è garantito essere l'indirizzo di una posizione '''non''' valida nella memoria.
|<code>NULL</code> || a macro expanding to the [[null pointer]] constant; that is, a constant representing a pointer value which is guaranteed '''not''' to be a valid address of an object in memory.
|-
|<code>size_t</code> || anUn unsignedintero [[integer]]senza typesegno whichche isè theil typetipo ofdi theritorno result of thedell'operatore <code>[[sizeof]]</code> operator.
|}
<!--
 
==Functions==