.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (c) 2012 by Michael Kerrisk .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH malloc_usable_size 3 "20 juillet 2023" "Pages du manuel de Linux 6.05.01" .SH NOM malloc_usable_size \- Obtenir la taille d'un bloc de mémoire alloué dans le tas .SH BIBLIOTHÈQUE Bibliothèque C standard (\fIlibc\fP, \fI\-lc\fP) .SH SYNOPSIS .nf \fB#include \fP .PP \fBsize_t malloc_usable_size(void *_Nullable \fP\fIptr\fP\fB);\fP .fi .SH DESCRIPTION This function can be used for diagnostics or statistics about allocations from \fBmalloc\fP(3) or a related function. .SH "VALEUR RENVOYÉE" \fBmalloc_usable_size\fP() returns a value no less than the size of the block of allocated memory pointed to by \fIptr\fP. If \fIptr\fP is NULL, 0 is returned. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ .na .nh \fBmalloc_usable_size\fP() T} Sécurité des threads MT\-Safe .TE .sp 1 .SH STANDARDS GNU. .SH CAVEATS The value returned by \fBmalloc_usable_size\fP() 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 \fBrealloc\fP(3) to resize the allocation is not supported. The returned value is only valid at the time of the call. .SH "VOIR AUSSI" \fBmalloc\fP(3) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot et Grégoire Scano . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .