The C program is pretty simple and exists only to write files for the Perl scripts. The C program is very specific, and can only write certain files an only under certain conditions. This script is known to run on UVa systems, and prints out valuable diagnostic information. The script is more or less self documenting. It's simple, but understanding why it works may take some study.
Source includes comments.
LSearch Documentation - This small search engine with a site editor shows how to do forms, write and edit data files, and even includes a very rudimentary password check. Uses a template HTML file to simplify coding, and implementation. Multiple form handlers, generates HTML pages from saved pages. Generates links on the fly. Multiple forms interacting.