Export (0) Print
Expand All
div
eof
Expand Minimize
This topic has not yet been rated - Rate this topic

_set_amblksiz 

Provides a secure way to set the block size for memory allocations.


errno_t _set_amblksiz(  
   size_t blockSize 
);

Parameters

[in] blockSize

The desired size of memory blocks for memory allocation.

Zero if successful; an error code on failure.

This function sets the value of the _amblksiz global variable, which is used by malloc and other memory allocation functions to determine the smallest block of memory that might be allocated from the heap at once. If blockSize is not a multiple of two, the actual block size is the next multiple of two.

Routine Required header Compatibility

_set_amblksiz

<malloc.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.