Two main functions in a C application
<p>I'm actually put in a big project. My first step to understand the code was to search the <code>main</code> function so that I have a vision of the architecture.</p>

<p>What I discovered is that there is more than one main function. It's true that they are in different folders, but I don't understand how this application succeed to build. What I know is that the linker expects one <code>main</code> function (Entry point).</p>

<p>I believe it's too hard to understand the build process of the application, so I'm asking because for sure some of you have encountered this.</p>

<p>1 - Should I have theoretical background to understand this?  If so, please suggest me articles, books, what ever you want.</p>

<p>2 - When <em>do</em> we have to use several <code>main</code> functions in one application?</p>