Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Gets the current block size used in memory allocations.

errno_t _get_amblksiz( 
   size_t * blockSize 

[out] blockSize

The block size will be written to this variable.

Zero if successful; an error code on failure.

The _amblksiz global variable controls the block size used by the memory allocation functions such as malloc. This function provides a secure way of getting access to the value of this variable.

If blockSize is NULL, this function invokes an invalid parameter handler, as described in Parameter Validation. If execution is allowed to continue, this function returns -1 and sets errno to EINVAL.


Required header



For more compatibility information, see Compatibility in the Introduction.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

© 2015 Microsoft