如何在linux平台下找到c++程序的堆内存大小?在使用new或malloc之前以及在使用that.can之后,有人帮助我需要堆内存空间吗?
#include <malloc.h>
#include <iostream>
int main()
{
//here need heap memory space
unsigned char* I2C_Read_Data= new unsigned char[250];
//get heap memory space After the usage of new
return 0;