cgic is a CGI library for C written by Thomas Boutell (http://www.boutell.com/cgic). Like CGI.pm and cgi-lib.pl, it is used to decode data submitted by the user and make it available within your CGI program. The only difference is that this library is written to work with C programs instead of programs written in Perl or any other language.
Before you can use cgic, you have to import it into your C program. Generally, it is loaded into your CGI program using a line like:
Programs written to work with cgic differ from standard C programs in some ways. All C programs must contain a function named main() in order to compile and execute properly. When you write programs that use cgic, you eliminate the main() ...