Women in Technology

Hear us Roar



Article:
  What I Hate About Your Programming Language
Subject:   Using C for CGI programming is easy...
Date:   2003-05-14 06:10:46
From:   anonymous2
The author said: I'd hate to write a CGI application in straight vanilla C; I'd go crazy trying to manipulate strings.


Response: Several free C tools are available that do the string manipulation for you. I've tried several but the one that blew me away is called "uncgi". If you work in Unix you really should take a look at uncgi. Uncgi takes all incoming information from an HTML form, places it into Unix environment variables, and then runs your program. All your program needs to do is use function getenv() to read everything on the form. Uncgi opens up html forms processing to a C programmer almost immediately. Note that uncgi is actually language neutral. Any language that can read environment variables will work. Here's where to get uncgi:


http://www.midwinter.com/~koreth/uncgi.html


Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Using C for CGI programming is easy...
    2003-05-14 07:53:46  anonymous2 [View]

    Which just means you trade parsing strings fed to the program for parsing strings collected from environment variables. Same core problem; parsing strings with C is tedious and provides boutiful opportunities for errors.