ggreer/the_silver_searcher — pull request #121 by gurgeous (2012-11-30 05:43:09+00:00)
Title: support for AG_OPTIONS

Please be gentle - I haven't written any C in a while. Feel free to edit. :)

I renamed the original argc/argv to argc0/argv0.

I didn't bother freeing the copies at the end. I noticed some other leaks with valgrind, so I figured you don't care. Because of the way argc & argv are used you'd have to make a copy of the original pointers if you want to free them later.