malloc_usable_size(3) Library Functions Manual malloc_usable_size(3) NOM malloc_usable_size - Obtenir la taille d'un bloc de memoire alloue dans le tas BIBLIOTHEQUE Bibliotheque C standard (libc, -lc) SYNOPSIS #include size_t malloc_usable_size(void *_Nullable ptr); DESCRIPTION This function can be used for diagnostics or statistics about allocations from malloc(3) or a related function. VALEUR RENVOYEE malloc_usable_size() returns a value no less than the size of the block of allocated memory pointed to by ptr. If ptr is NULL, 0 is returned. ATTRIBUTS Pour une explication des termes utilises dans cette section, consulter attributes(7). +---------------------------------+--------------------------+---------+ |Interface | Attribut | Valeur | +---------------------------------+--------------------------+---------+ |malloc_usable_size() | Securite des threads | MT-Safe | +---------------------------------+--------------------------+---------+ STANDARDS GNU. CAVEATS The value returned by malloc_usable_size() may be greater than the requested size of the allocation because of various internal implementation details, none of which the programmer should rely on. This function is intended to only be used for diagnostics and statistics; writing to the excess memory without first calling realloc(3) to resize the allocation is not supported. The returned value is only valid at the time of the call. VOIR AUSSI malloc(3) TRADUCTION La traduction francaise de cette page de manuel a ete creee par Christophe Blaess , Stephan Rafin , Thierry Vignaud , Francois Micaux, Alain Portal , Jean-Philippe Guerard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas Francois , Florentin Duneau , Simon Paillard , Denis Barbier , David Prevot et Gregoire Scano Cette traduction est une documentation libre ; veuillez vous reporter a la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITE LEGALE. Si vous decouvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message a . Pages du manuel de Linux 6.06 31 octobre 2023 malloc_usable_size(3)