Поделиться через


_get_amblksiz

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.

Требования

Routine

Required header

_get_amblksiz

<malloc.h>

For more compatibility information, see Compatibility in the Introduction.

Эквивалент в .NET Framework

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

См. также

Основные понятия

_amblksiz

_set_amblksiz