title: Automatic create function block diagram from ansi c code
body: <p>Does anyone know a tool that is able to create &quot;function diagrams&quot; from ansi c code?</p>
  <p>By &quot;function diagram&quot; I mean a chart that represents an overview of files, functions and their relations. I imagine it to be something like a circut diagram.</p>
  <p>Eg. if have the following code:</p>
  <pre><code>//MyProgram.c
  int main(int argc, char** argv)
  {
      Foo();
      Bar();
      return 0;
  }
  
  //Slave.h
  void Foo();
  void Bar();
  </code></pre>
  <p>The chart would be something like the following picture:</p>
  <p><a href="https://i.stack.imgur.com/ECKFF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ECKFF.png" alt="Function relation diagram" /></a></p>
  
  <p>Does it have an official name? Dependency diagram, perhaps?</p>
  <p>I've looked at bit on Doxygen. But that one clearly states that:
  <em>Doxygen has built-in support to generate inheritance diagrams for C++ classes.</em>
  Same thing with many UML tools. I don't have any classes. Although my c files may come close.</p>