Is there a way to determine the largest amount of continuous memory using either new or malloc(), preferably malloc tho.
I am looking for a quick and easy function call and I don't want to have to loop through different values and see if it's available. A function that goes through a loop also won't help me, I need something that tells me the biggest size chunk without any processing time.

>Is there a way to determine the largest amount of continuous memory using either new or malloc?

No. You can't call malloc to get how many bytes are available for you to use.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.