Quote:
> > It will probably take you less time to write this code than to
> > find it. Give it a try.
> Really? It took me about five minutes to find "Functions to
> read configuration files" on www.snippets.org. :)
> Not attempting to reinvent the wheel is a virtue that deserves
> more encouragement, I think.
The problem with this philosophy comes up when the existing
"wheels" are shaped like triangles. A couple of years ago I was
looking for a CGI library in C that fit a few, not-too-stringent
requirements:
* Supported POST and GET queries and file uploads.
* 100% pure ANSI C[1].
* Reasonably usable library programming interface.
* Well-written, with no arbitrary limits or security
holes that I could spot.
* Freely redistributable source license.
I found *lots* of CGI libraries in C, but not one of them met
these requirements. So I wrote my own. I still like it the best
of the ones I've seen for C, but that might be the Not Invented
Here syndrome at work.
(There are probably others that meet these requirements now, but
I couldn't find one then.)
[1] Believe it or not you can do a significant amount of
CGI-based web programming without straying outside the C
standard.
--
"You call this a *C* question? What the hell are you smoking?" --Kaz