.\" -*- coding: UTF-8 -*- .\" Copyright (c) 2012 by Michael Kerrisk .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH MALLOC_USABLE_SIZE 3 "15. September 2017" GNU Linux\-Programmierhandbuch .SH BEZEICHNUNG malloc_usable_size \- Größe eines im Heap reservierten Speicherblocks erlangen .SH ÜBERSICHT \fB#include \fP .PP \fBsize_t malloc_usable_size (void *\fP\fIzeiger\fP\fB);\fP .SH BESCHREIBUNG Die Funktion \fBmalloc_usable_size\fP() liefert die Anzahl der benutzbaren Byte in dem Block, auf den \fIzeiger\fP zeigt. Der Zeiger auf einen Speicherblock wurde durch \fBmalloc\fP(3) oder eine verwandte Funktion reserviert. .SH RÜCKGABEWERT \fBmalloc_usable_size\fP() liefert die Anzahl der nutzbaren Bytes in dem Block von reserviertem Speicher zurück, auf den \fIzeiger\fP zeigt. Falls \fIzeiger\fP NULL ist, wird 0 zurückgeliefert. .SH ATTRIBUTE Siehe \fBattributes\fP(7) für eine Erläuterung der in diesem Abschnitt verwandten Ausdrücke. .TS allbox; lbw20 lb lb l l l. Schnittstelle Attribut Wert T{ \fBmalloc_usable_size\fP() T} Multithread\-Fähigkeit MT\-Safe .TE .SH "KONFORM ZU" Diese Funktion ist eine GNU\-Erweiterung. .SH ANMERKUNGEN Der von \fBmalloc_usable_size\fP() zurückgelieferte Wert kann aufgrund von Ausrichtungsanforderungen und Bedingungen zur minimalen Größe größer als die angefragte Größe der Belegung sein. Obwohl die überzähligen Bytes durch die Anwendung ohne negative Auswirkung überschrieben werden können, ist dies keine gute Programmierpraxis: die Anzahl der überschüssigen Bytes in einer Reservierung hängt von der zugrundeliegenden Implementierung ab. .PP Die Hauptverwendung dieser Funktion ist die Fehlersuche und Untersuchung. .SH "SIEHE AUCH" \fBmalloc\fP(3) .SH KOLOPHON Diese Seite ist Teil der Veröffentlichung 5.10 des Projekts Linux\-\fIman\-pages\fP. Eine Beschreibung des Projekts, Informationen, wie Fehler gemeldet werden können, sowie die aktuelle Version dieser Seite finden sich unter \%https://www.kernel.org/doc/man\-pages/. .PP .SH ÜBERSETZUNG Die deutsche Übersetzung dieser Handbuchseite wurde von Helge Kreutzmann erstellt. .PP Diese Übersetzung ist Freie Dokumentation; lesen Sie die .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE oder neuer bezüglich der Copyright-Bedingungen. Es wird KEINE HAFTUNG übernommen. .PP Wenn Sie Fehler in der Übersetzung dieser Handbuchseite finden, schicken Sie bitte eine E-Mail an die .MT debian-l10n-german@lists.debian.org Mailingliste der Übersetzer .ME .