String.h: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
RobotQuistnix (discussione | contributi)
m Bot: Aggiungo: es:String.h
Tradotta (ed allineata con versione EN) sezione "Estensioni per ISO C"
Riga 95:
|transforms src into a collating form, such that the numerical sort order of the transformed string is equivalent to the collating order of src.
|}
-->
 
===ExtensionsEstensioni toper ISO C===
 
===Extensions to ISO C===
{| class="wikitable"
|-
! NameNome !! NotesDescrizione !! SpecificationSpecifica
|-
|<code>char *strdup(const char *);</code>
|alloca e duplica una stringa nella memoria
|allocates and duplicates a string into memory
|[[POSIX]]; originallyoriginariamente auna BSDestensione extensiondi [[BSD]]
|-
|<code>errno_t strcpy_s(char *restrict s1, rsize_t s1max, const char *restrict s2);</code>
|bounds-checkedvariante variant ofdi <code>strcpy</code> che include dei controlli sulla lunghezza delle stringhe
|ISO/IEC WDTR 24731
|-
|<code>void *mempcpy(void *dest, const void *src, size_t n);</code>
|variantvariante ofdi <code>memcpy</code> returningche aritorna pointerun topuntatore theal byte followingsuccessivo theall'ultimo lastbyte written bytescritto
|[[GNU]]
|-
|<code>void *memccpy(void *dest, const void *src, int c, size_t n
);</code>
|copia fino ad n byte fra due aree di memoria non sovrapposte, fermandosi quando viene trovato il byte c
|copies up to n bytes between two memory areas, which must not overlap, stopping when the byte c is found
|UNIX 98?
|-
|<code>int *strerror_r(int, char *, size_t);</code>
|returnsrestituisce theuna stringrappresentazione representationin stringa di un numero di errore (si ofveda [[errno]]) (thread-safe; somealcune differencesdifferenze insemantiche fra semanticsla betweenspecifica [[GNU]] ande [[XSI]]/[[POSIX]])
|[[GNU]], [[POSIX]]
|-
|<code>size_t strlcpy(char *dest, const char *src, size_t n);</code>
|bounds-checkedvariante variant ofdi <code>strcpy</code> che comprende controlli sulla lunghezza della stringa
|originallyoriginariamente [[OpenBSD]], nowora alsoanche [[FreeBSD]], [[Solaris Operating(sistema Systemoperativo)|Solaris]], [[Mac OS X|OS X]]
|-
|<code>char *strtok_r(char *, const char *, char **);</code>
|versione thread-safe version ofdi strtok
|POSIX
|-
|<code>char *[[strsignal]](int sig);</code>
|analogamente a <code>strerror</code>, ritorna una rappresentazione in stringa del [[Segnale (informatica)|segnale]] <code>sig</code> (non thread safe)
|varie distribuzioni BSD, [[Solaris (sistema operativo)|Solaris]], [[Linux]]
|}
 
<!--
==External links==
*{{man|3|string||string operations}}