title: Open Source or Freeware C Code Metrics tools?
body: <p>I have been trying to find a tool (hopefully for MAC OS X but I don't mind migrating) -- that works -- for those dimensions but I had no luck. <a href="http://www.maultech.com/chrislott/resources/cmetrics/" rel="nofollow">Maultech</a> mention some, and so does <a href="http://www.locmetrics.com/alternatives.html" rel="nofollow">this page</a> but I was unable to make them work. Metre and ccount (listed on that page) seems to cover most of what I wanted. The tools also seem not up to date no anymore with makes me unsure if the outputs can still be trusted.</p>
  
  <p>Is there any current C tool that can do this that is free or open source? Most of what I found is for Java or OO. </p>
  
  <p>By simple metrics I mean for example calculating amount of, characters, blanks, functions, methods, amount of statements, depth of nests, etc. </p>
  
  <p>By Size I mean line of code, and comments.</p>
  
  <p>By Complexity I mean mccabe and halstead metric at the very least.</p>
  
  <p>By Couple and Cohesion I mean interaction between function calls etc (this is a known SE principle). </p>