In hindsight, my comment seems rather curt and dismissive. Thanks for taking my criticisms like a champ.<p>Honestly, I don&#x27;t think ag is very good code. It&#x27;s worth reading if you want to see optimizations like memory-mapped I&#x2F;O, pthreads, Boyer-Moore strstr, etc. But if I had to grade the quality of the code, I&#x27;d give it a C-. Many parts have grown organically, and I haven&#x27;t had time to restructure them. Also, ag&#x27;s use-case is not exactly mission-critical. Nobody is going to die if it crashes or errors-out. Add my time constraints and… the result is some shoddy code.<p>I&#x27;ll add &quot;C Programming Guidelines&quot; to my queue of blog posts to write, but I make no guarantees about when I&#x27;ll get to it. Sorry.