C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28629
Number of posts: 94611

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
C=>To Find Heap Size Posted by starvijay on 17 Apr 2006 at 12:36 AM
Hai all,

I have one doubt in C. That is..
How will write a routine in C to find the heap size?
if anyone knows the answer, pls post & clear my doubt.
-Vijay
Report
Re: C=>To Find Heap Size Posted by stober on 17 Apr 2006 at 3:38 AM
This message was edited by stober at 2006-4-17 7:59:41

: Hai all,
:
: I have one doubt in C. That is..
: How will write a routine in C to find the heap size?
: if anyone knows the answer, pls post & clear my doubt.
: -Vijay
:

on 32-bit operating systems such as MS-Windows and *nix, the max is 2 Gig or however much memory installed in the computer. Its not possible to determine how much is currently available without using os-specific (probably) kernel-level code.

This technical article might be of interest
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngenlib/html/msdn_manamemo.asp






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.