malloc_good_size(3) mojave man page | unix.com

Man Page: malloc_good_size

Operating Environment: mojave

Section: 3

MALLOC_SIZE(3)						   BSD Library Functions Manual 					    MALLOC_SIZE(3)

NAME
malloc_good_size, malloc_size -- memory allocation information
SYNOPSIS
#include <malloc/malloc.h> size_t malloc_good_size(size_t size); size_t malloc_size(const void *ptr);
DESCRIPTION
The malloc_size() function returns the size of the memory block that backs the allocation pointed to by ptr. The memory block size is always at least as large as the allocation it backs, and may be larger. The malloc_good_size() function rounds size up to a value that the allocator implementation can allocate without adding any padding; it then returns that rounded-up value.
SEE ALSO
malloc(3)
BSD
May 23, 2006 BSD
Related Man Pages
mapmalloc(3malloc) - opensolaris
reallocf(3) - debian
malloc_zone_memalign(3) - osx
mapmalloc(3malloc) - hpux
mapmalloc(3malloc) - opendarwin
Similar Topics in the Unix Linux Community
Instructions to Clear Data Cache in Safari, Chrome, Firefox, Opera Browsers (Pictures)
UNIX tool on MacOS that can increase resolution of a file
Cannot extract libraries using sed
Controlling user input
Python 3.8.0rc1 released.