available memory - heap vs. stack - to_do
<p>I want to deterime the size of the heap.  Than I want to break it by building a single-linked list until the heap runs into the stack.</p>

<p>This is preparation for an interview.</p>

<p>But as a programmer I feel like I should know how much memory I have to work with.  According to my professor....The heap  and the stack expand until they collide.</p>

<p>So the question might me more aptly stated as, how do I determine the amount of memory available.</p>

<p>Here is the code I will use to break the heap.</p>

<p>To summarize:
1.) How do I dermine the amount of memory available to my program?</p>

<pre><code>int main()
  {
  struct lnode* head = NULL;
  int i=0;
  while(1)
    {
    i++;
    lnode_push(head,1);    
    }
  }
</code></pre>
