Reading/Understanding third-party code
<p>When you get a third-party library (c, c++), open-source (LGPL say), that does not have good documentation, what is the best way to go about understanding it to be able to integrate into your application?</p>

<p>The library usually has some example programs and I end up walking through the code using gdb. Any other suggestions/best-practicies?</p>

<p>For an example, I just picked one from sourceforge.net, but it's just a broad engineering/programming question:
<a href="http://sourceforge.net/projects/aftp/" rel="nofollow">http://sourceforge.net/projects/aftp/</a></p>
